mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Solved unit tests
This commit is contained in:
		@@ -5,7 +5,7 @@ namespace tests\unit\Entity\Attribut;
 | 
			
		||||
use PHPUnit\Framework\TestCase;
 | 
			
		||||
use App\Entity\Attribut\NameSourceAttributInterface;
 | 
			
		||||
use App\Entity\Attribut\NameSourceAttribut;
 | 
			
		||||
use App\Entity\Source\Data\NameSourceInterface;
 | 
			
		||||
use App\Entity\Source\Data\Name\NameSourceInterface;
 | 
			
		||||
 | 
			
		||||
class NameSourceAttributTest extends TestCase
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ namespace Tests\Unit\Entity\Attribut;
 | 
			
		||||
use PHPUnit\Framework\TestCase;
 | 
			
		||||
use App\Entity\Attribut\PersonIdentitySourceAttributInterface;
 | 
			
		||||
use App\Entity\Attribut\PersonIdentitySourceAttribut;
 | 
			
		||||
use App\Entity\Source\Data\PersonIdentitySourceInterface;
 | 
			
		||||
use App\Entity\Source\Combination\PersonIdentitySourceInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @todo Implement abstract test class for entity attributs
 | 
			
		||||
@@ -29,13 +29,13 @@ class PersonIdentitySourceAttributTest extends TestCase
 | 
			
		||||
    public function testConstructor(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(\TypeError::class);
 | 
			
		||||
        $this->identity->getIdentitySource();
 | 
			
		||||
        $this->identity->getPersonIdentitySource();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testAccessors(): void
 | 
			
		||||
    {
 | 
			
		||||
        $identity = $this->createMock(PersonIdentitySourceInterface::class);
 | 
			
		||||
        $this->assertNull($this->identity->setIdentitySource($identity));
 | 
			
		||||
        $this->assertEquals($collection, $this->identity->getIdentitySource());
 | 
			
		||||
        $this->assertNull($this->identity->setPersonIdentitySource($identity));
 | 
			
		||||
        $this->assertEquals($identity, $this->identity->getPersonIdentitySource());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user