public function testSetTimeFrameAllFindsEventsWithoutDate() { $this->testingFramework->createRecord('tx_seminars_seminars', array('begin_date' => 0, 'end_date' => 0)); $this->fixture->setTimeFrame('all'); $bag = $this->fixture->build(); self::assertSame(1, $bag->count()); }
/** * Limits the bag to events within the time frame set by setup. * * @param tx_seminars_BagBuilder_Event $builder * the seminarbagbuilder to limit by time frame * * @return void */ private function limitToTimeFrameSetting($builder) { try { $builder->setTimeFrame($this->getConfValueString('timeframeInList', 's_template_special')); } catch (Exception $exception) { // Ignores the exception because the user will be warned of the // problem by the configuration check. } }