Exemplo n.º 1
0
 /**
  * @test
  */
 public function limitToMinimumPriceForMinimumPriceZeroFindsEventWithRegularPrice()
 {
     $this->testingFramework->createRecord('tx_seminars_seminars', array('price_regular' => 16));
     $this->fixture->limitToMinimumPrice(0);
     $bag = $this->fixture->build();
     self::assertSame(1, $bag->count());
 }
Exemplo n.º 2
0
 /**
  * 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.
     }
 }