/** * @test */ public function setFilesForObjectStorageContainingFilesSetsFiles() { $file = new \TYPO3\CMS\Extbase\Domain\Model\FileReference(); $objectStorageHoldingExactlyOneFile = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneFile->attach($file); $this->subject->setFiles($objectStorageHoldingExactlyOneFile); $this->assertAttributeEquals($objectStorageHoldingExactlyOneFile, 'files', $this->subject); }