Example #1
0
 /**
  * @test
  */
 public function setAdditionalImageForObjectStorageContainingFilesSetsFiles()
 {
     $file = new \TYPO3\CMS\Extbase\Domain\Model\FileReference();
     $objectStorageHoldingExactlyOneFile = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $objectStorageHoldingExactlyOneFile->attach($file);
     $this->subject->setAdditionalImage($objectStorageHoldingExactlyOneFile);
     $this->assertAttributeEquals($objectStorageHoldingExactlyOneFile, 'additionalImage', $this->subject);
 }