Solved AbstractSourceTest

This commit is contained in:
Kevin Frantz 2018-11-26 22:36:08 +01:00
parent 50685e17f5
commit 5b3f48a7be

View File

@ -36,10 +36,10 @@ class AbstractSourceTest extends TestCase
$this->assertInstanceOf(EntityInterface::class, $this->source); $this->assertInstanceOf(EntityInterface::class, $this->source);
$this->assertInstanceOf(CreatorRelationInterface::class, $this->source->getCreatorRelation()); $this->assertInstanceOf(CreatorRelationInterface::class, $this->source->getCreatorRelation());
$this->assertEquals($this->source, $this->source->getCreatorRelation()->getSource()); $this->assertEquals($this->source, $this->source->getCreatorRelation()->getSource());
$this->assertInstanceOf(Collection::class, $this->source->getMemberships()); $this->assertInstanceOf(Collection::class, $this->source->getMemberRelation()->getMemberships());
$this->assertInstanceOf(LawInterface::class, $this->source->getLaw()); $this->assertInstanceOf(LawInterface::class, $this->source->getLaw());
$this->assertEquals($this->source, $this->source->getLaw()->getSource()); $this->assertEquals($this->source, $this->source->getLaw()->getSource());
$this->assertInstanceOf(Collection::class, $this->source->getMembers()); $this->assertInstanceOf(Collection::class, $this->source->getMemberRelation()->getMembers());
} }
public function testSlugInit(): void public function testSlugInit(): void