mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
26 lines
571 B
PHP
26 lines
571 B
PHP
|
<?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());
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|