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