mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Implemented UserIdentityService
This commit is contained in:
		@@ -0,0 +1,25 @@
 | 
			
		||||
<?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());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user