Example #1
0
 /**
  * @test
  */
 public function setImageForObjectStorageContainingImageSetsImage()
 {
     $image = new \TYPO3\CMS\Extbase\Domain\Model\FileReference();
     $objectStorageHoldingExactlyOneImage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $objectStorageHoldingExactlyOneImage->attach($image);
     $this->subject->setImage($objectStorageHoldingExactlyOneImage);
     $this->assertAttributeEquals($objectStorageHoldingExactlyOneImage, 'image', $this->subject);
 }