mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	Optimized draft for UserSourceDirector and UserRight
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace tests\Unit\Domain\RightManagement;
 | 
			
		||||
 | 
			
		||||
use PHPUnit\Framework\TestCase;
 | 
			
		||||
@@ -7,19 +8,16 @@ use App\Entity\Source\SourceInterface;
 | 
			
		||||
use App\Domain\RightManagement\UserRightService;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 
 | 
			
		||||
 * @author kevinfrantz
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
class UserRightServiceTest extends TestCase
 | 
			
		||||
{
 | 
			
		||||
    public function testUserSet():void{
 | 
			
		||||
    public function testUserSet(): void
 | 
			
		||||
    {
 | 
			
		||||
        $user = new User();
 | 
			
		||||
        $source = $this->createMock(SourceInterface::class);
 | 
			
		||||
        $user->setSource($source);
 | 
			
		||||
        $userRight = new UserRightService($user);
 | 
			
		||||
        $this->assertEquals($source, $userRight->getReciever());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user