/** * @test */ public function hasRegularBoardPriceForSingleEventWithRegularBoardPriceReturnsTrue() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'price_regular_board' => 42.42)); self::assertTrue($this->fixture->hasRegularBoardPrice()); }
/** * @test */ public function hasRegularBoardPriceForEventDateWithRegularBoardPriceReturnsTrue() { $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('price_regular_board' => 42.42)); $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic)); self::assertTrue($this->fixture->hasRegularBoardPrice()); }