/** * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager */ public function __construct(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) { parent::__construct($objectManager); $querySettings = new Typo3QuerySettings(); $querySettings->setRespectStoragePage(false); $this->setDefaultQuerySettings($querySettings); }
/** * @test */ public function initializeObjectSetsRespectStoragePidToFalse() { $this->querySettings->expects($this->atLeastOnce())->method('setRespectStoragePage')->with(FALSE); $fixture = $this->getMock('TYPO3\\CMS\\Belog\\Domain\\Repository\\LogEntryRepository', array('setDefaultQuerySettings'), array($this->objectManager)); $fixture->expects($this->once())->method('setDefaultQuerySettings')->with($this->querySettings); $fixture->initializeObject(); }
/** * @test */ public function setReturnRawQueryResultAllowsChaining() { $this->assertTrue($this->typo3QuerySettings->setReturnRawQueryResult(TRUE) instanceof \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface); }
/** * @test */ public function setIncludeDeletedAllowsChaining() { $this->assertTrue($this->typo3QuerySettings->setIncludeDeleted(TRUE) instanceof \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface); }
/** * As long as we use a feature flag ignoreAllEnableFieldsInBe to determine the default behavior, the * initializeObject is responsible for handling that. */ public function initializeObject() { parent::initializeObject(); }