/** * @test */ public function setRegularPriceForSingleEventWithPositiveRegularPriceSetsRegularPrice() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE)); $this->fixture->setRegularPrice(42.42); self::assertEquals(42.42, $this->fixture->getRegularPrice()); }
/** * @test */ public function getRegularPriceForEventDateWithPositiveRegularPriceReturnsRegularPrice() { $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('price_regular' => 42.42)); $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic)); self::assertEquals(42.42, $this->fixture->getRegularPrice()); }