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