예제 #1
0
 /**
  * Test if media can be set
  *
  * @test
  * @return void
  */
 public function mediaCanBeSet()
 {
     $media = new Tx_MooxNews_Domain_Model_Media();
     $media->setTitle('fo');
     $mediaElements = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $mediaElements->attach($media);
     $this->newsDomainModelInstance->setMedia($mediaElements);
     $this->assertEquals($mediaElements, $this->newsDomainModelInstance->getMedia());
 }