Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * Test if related links can be set
  *
  * @test
  * @return void
  */
 public function relatedLinksCanBeSet()
 {
     $link = new Tx_MooxNews_Domain_Model_Link();
     $link->setTitle('fo');
     $related = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $related->attach($link);
     $this->newsDomainModelInstance->setRelatedLinks($related);
     $this->assertEquals($related, $this->newsDomainModelInstance->getRelatedLinks());
 }