From 43cdc6fa0b241dd81367bf22c3a128ac6f7b427a Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sun, 11 Nov 2018 20:43:30 +0100 Subject: [PATCH] Optimozed Test for PersonIdentitySource --- ...SourceTest.php => PersonIdentitySourceTest.php} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename application/tests/Unit/Entity/Source/Data/{IdentitySourceTest.php => PersonIdentitySourceTest.php} (60%) diff --git a/application/tests/Unit/Entity/Source/Data/IdentitySourceTest.php b/application/tests/Unit/Entity/Source/Data/PersonIdentitySourceTest.php similarity index 60% rename from application/tests/Unit/Entity/Source/Data/IdentitySourceTest.php rename to application/tests/Unit/Entity/Source/Data/PersonIdentitySourceTest.php index 3b7a460..c5c4ce5 100644 --- a/application/tests/Unit/Entity/Source/Data/IdentitySourceTest.php +++ b/application/tests/Unit/Entity/Source/Data/PersonIdentitySourceTest.php @@ -3,20 +3,20 @@ namespace tests\unit\Entity\Source\Data; use PHPUnit\Framework\TestCase; -use App\Entity\Source\Data\IdentityInterface; -use App\Entity\Source\Data\IdentitySource; -use App\Entity\Source\Data\FullPersonNameSourceInterface; +use App\Entity\Source\Data\PersonIdentitySourceInterface; +use App\Entity\Source\Data\PersonIdentitySource; +use App\Entity\Source\Combination\FullPersonNameSourceInterface; -class IdentitySourceTest extends TestCase +class PersonIdentitySourceTest extends TestCase { /** - * @var IdentityInterface + * @var PersonIdentitySourceInterface */ protected $identity; public function setUp(): void { - $this->identity = new IdentitySource(); + $this->identity = new PersonIdentitySource(); } public function testConstructor(): void @@ -24,7 +24,7 @@ class IdentitySourceTest extends TestCase $this->assertInstanceOf(FullPersonNameSourceInterface::class, $this->identity->getName()); } - public function testName(): void + public function testFullName(): void { $name = $this->createMock(FullPersonNameSourceInterface::class); $this->assertNull($this->identity->setName($name));