Implemented draft for PureSourceCreateType Test and adapted classes to it

This commit is contained in:
Kevin Frantz
2019-02-13 18:03:25 +01:00
parent aafde4c0f9
commit 1bc85c994e
14 changed files with 93 additions and 22 deletions

View File

@@ -26,8 +26,7 @@ class IdAttributTest extends TestCase
public function testConstruct(): void
{
$this->assertFalse($this->id->hasId());
$this->expectException(\TypeError::class);
$this->id->getId();
$this->assertNull($this->id->getId());
}
public function testAccessors(): void

View File

@@ -27,8 +27,7 @@ class SlugAttributTest extends TestCase
public function testConstructor(): void
{
$this->assertFalse($this->slugAttribut->hasSlug());
$this->expectException(\TypeError::class);
$this->slugAttribut->getSlug();
$this->assertNull($this->slugAttribut->getSlug());
}
public function testAccessors(): void