mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
24 lines
565 B
PHP
24 lines
565 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());
|
|
}
|
|
}
|