Example #1
0
 /**
  * @test
  */
 public function removeFilesFromObjectStorageHoldingFiles()
 {
     $files = new \TYPO3\CMS\Extbase\Domain\Model\FileReference();
     $imageObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $imageObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($files));
     $this->inject($this->subject, 'files', $imageObjectStorageMock);
     $this->subject->removeFiles($files);
 }