Esempio n. 1
0
 /**
  * Test if title can be set
  *
  * @test
  * @return void
  */
 public function titleBeSet()
 {
     $domainModelInstance = new Tx_News_Domain_Model_FileReference();
     $value = 'Test 123';
     $domainModelInstance->setTitle($value);
     $this->assertEquals($value, $domainModelInstance->getTitle());
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function falMediaCanBeAdded()
 {
     $mediaItem = new Tx_News_Domain_Model_FileReference();
     $mediaItem->setTitle('Fo');
     $news = new Tx_News_Domain_Model_News();
     $news->addFalMedia($mediaItem);
     $this->assertEquals($news->getFalMedia()->current(), $mediaItem);
 }