/** * Sets the storagePage constraint to the given constraints array * * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\EventDemand $eventDemand EventDemand * @param array $constraints Constraints * * @return void */ protected function setStoragePageConstraint($query, $eventDemand, &$constraints) { if ($eventDemand->getStoragePage() != '') { $pidList = GeneralUtility::intExplode(',', $eventDemand->getStoragePage(), TRUE); $constraints[] = $query->in('pid', $pidList); } }
/** * @test */ public function getStoragePageReturnsInitialValue() { $this->assertSame(null, $this->subject->getStoragePage()); }