Implemented slug for sources

This commit is contained in:
Kevin Frantz
2018-11-23 18:17:00 +01:00
parent 84c2de2283
commit baca225775
6 changed files with 93 additions and 2 deletions

View File

@@ -33,4 +33,10 @@ class AbstractSourceTest extends TestCase
$this->assertInstanceOf(Collection::class, $this->source->getMemberships());
$this->assertInstanceOf(LawInterface::class, $this->source->getLaw());
}
public function testSlugInit(): void
{
$this->expectException(\TypeError::class);
$this->source->getSlug();
}
}