TYPO3 CMS  TYPO3_6-2
FileMountRepositoryTest.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $fixture = NULL;
26 
27  protected function setUp() {
28  $this->fixture = new \TYPO3\CMS\Extbase\Domain\Repository\FileMountRepository($this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface'));
29  }
30 
34  public function initializeObjectSetsRespectStoragePidToFalse() {
36  $objectManager = $this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface');
37  $fixture = new \TYPO3\CMS\Extbase\Domain\Repository\FileMountRepository($objectManager);
38  $querySettings = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings');
39  $querySettings->expects($this->once())->method('setRespectStoragePage')->with(FALSE);
40  $objectManager->expects($this->once())->method('get')->with('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings')->will($this->returnValue($querySettings));
41  $fixture->initializeObject();
42  }
43 }