2 namespace TYPO3\CMS\Belog\Tests\Unit\Domain\Repository;
29 $this->querySettings = $this->getMock(\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface::class);
30 $this->objectManager = $this->getMock(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class);
31 $this->objectManager->expects($this->any())->method(
'get')->with(\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface::class)->will($this->returnValue($this->querySettings));
39 $this->querySettings->expects($this->atLeastOnce())->method(
'setRespectStoragePage')->with(
false);
40 $fixture = $this->getMock(\TYPO3\CMS\Belog\Domain\Repository\HistoryEntryRepository::class, array(
'setDefaultQuerySettings'), array($this->objectManager));
41 $fixture->expects($this->once())->method(
'setDefaultQuerySettings')->with($this->querySettings);
42 $fixture->initializeObject();