/** * Test if related links can be set * * @test * @return void */ public function relatedLinksCanBeSet() { $link = new Link(); $link->setTitle('fo'); $related = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $related->attach($link); $this->newsDomainModelInstance->setRelatedLinks($related); $this->assertEquals($related, $this->newsDomainModelInstance->getRelatedLinks()); }
/** * Test if uri can be set * * @test * @return void */ public function uriCanBeSet() { $uri = 'http://typo3.org'; $this->linkDomainModelInstance->setUri($uri); $this->assertEquals($uri, $this->linkDomainModelInstance->getUri()); }