TYPO3 CMS  TYPO3_6-2
WorkspaceRepositoryTest.php
Go to the documentation of this file.
1 <?php
3 
21 
26  $querySettings = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QuerySettingsInterface');
27  $objectManager = $this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface');
28  $objectManager->expects($this->any())->method('get')->with('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QuerySettingsInterface')->will($this->returnValue($querySettings));
29  $querySettings->expects($this->atLeastOnce())->method('setRespectStoragePage')->with(FALSE);
30  $subject = $this->getMock('TYPO3\\CMS\\Belog\\Domain\\Repository\\WorkspaceRepository', array('setDefaultQuerySettings'), array($objectManager));
31  $subject->expects($this->once())->method('setDefaultQuerySettings')->with($querySettings);
32  $subject->initializeObject();
33  }
34 }