mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	Made person identity optional for user
This commit is contained in:
		@@ -23,7 +23,24 @@ class UserSourceTest extends TestCase
 | 
			
		||||
    public function testConstructor(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testHasPersonIdentitySource(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->assertFalse($this->userSource->hasPersonIdentitySource());
 | 
			
		||||
        $this->userSource->setPersonIdentitySource($this->createMock(PersonIdentitySourceInterface::class));
 | 
			
		||||
        $this->assertTrue($this->userSource->hasPersonIdentitySource());
 | 
			
		||||
        $this->assertInstanceOf(PersonIdentitySourceInterface::class, $this->userSource->getPersonIdentitySource());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testInitPersonIdentitySource(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(\TypeError::class);
 | 
			
		||||
        $this->userSource->getPersonIdentitySource();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testInitUser(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(\TypeError::class);
 | 
			
		||||
        $this->userSource->getUser();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user