infinito/application/symfony/tests/Unit/Domain/RightManagement/UserRightServiceTest.php

26 lines
571 B
PHP
Raw Normal View History

2019-01-13 13:14:29 +01:00
<?php
namespace tests\Unit\Domain\RightManagement;
use PHPUnit\Framework\TestCase;
use App\Entity\User;
use App\Entity\Source\SourceInterface;
use App\Domain\RightManagement\UserRightService;
/**
*
* @author kevinfrantz
*
*/
class UserRightServiceTest extends TestCase
{
public function testUserSet():void{
$user = new User();
$source = $this->createMock(SourceInterface::class);
$user->setSource($source);
$userRight = new UserRightService($user);
$this->assertEquals($source, $userRight->getReciever());
}
}