source = $this->getSourceDummy(); } public function testConstructor(): void { $this->assertInstanceOf(EntityInterface::class, $this->source); $this->assertInstanceOf(CreatorRelationInterface::class, $this->source->getCreatorRelation()); $this->assertEquals($this->source, $this->source->getCreatorRelation()->getSource()); $this->assertInstanceOf(Collection::class, $this->source->getMemberRelation()->getMemberships()); $this->assertInstanceOf(LawInterface::class, $this->source->getLaw()); $this->assertEquals($this->source, $this->source->getLaw()->getSource()); $this->assertInstanceOf(Collection::class, $this->source->getMemberRelation()->getMembers()); } public function testSlugInit(): void { $this->expectException(\TypeError::class); $this->source->getSlug(); } }