/** * 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()); }
/** * @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); }