17 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
32 protected function setUp()
34 $this->typo3QuerySettings = $this->getAccessibleMock(\
TYPO3\CMS\
Extbase\Persistence\Generic\Typo3QuerySettings::class, [
'dummy']);
43 'TRUE setting' => [
true],
44 'FALSE setting' => [
false]
54 'empty array' => [[]],
55 'two elements associative' => [
78 $this->typo3QuerySettings->setRespectStoragePage($input);
79 $this->assertEquals($input, $this->typo3QuerySettings->getRespectStoragePage());
87 $this->assertTrue($this->typo3QuerySettings->setRespectStoragePage(
true) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
98 $this->typo3QuerySettings->setStoragePageIds($input);
99 $this->assertEquals($input, $this->typo3QuerySettings->getStoragePageIds());
107 $this->assertTrue($this->typo3QuerySettings->setStoragePageIds([1, 2, 3]) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
118 $this->typo3QuerySettings->setRespectSysLanguage($input);
119 $this->assertEquals($input, $this->typo3QuerySettings->getRespectSysLanguage());
127 $this->assertTrue($this->typo3QuerySettings->setRespectSysLanguage(
true) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
135 $this->assertTrue($this->typo3QuerySettings->setLanguageUid(42) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
146 $this->typo3QuerySettings->setIgnoreEnableFields($input);
147 $this->assertEquals($input, $this->typo3QuerySettings->getIgnoreEnableFields());
155 $this->assertTrue($this->typo3QuerySettings->setIgnoreEnableFields(
true) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
166 $this->typo3QuerySettings->setEnableFieldsToBeIgnored($input);
167 $this->assertEquals($input, $this->typo3QuerySettings->getEnableFieldsToBeIgnored());
175 $this->assertTrue($this->typo3QuerySettings->setEnableFieldsToBeIgnored([
'starttime',
'endtime']) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);
186 $this->typo3QuerySettings->setIncludeDeleted($input);
187 $this->assertEquals($input, $this->typo3QuerySettings->getIncludeDeleted());
195 $this->assertTrue($this->typo3QuerySettings->setIncludeDeleted(
true) instanceof \
TYPO3\CMS\
Extbase\Persistence\Generic\QuerySettingsInterface);