Пример #1
0
 /**
  * @test
  */
 public function setRegularBoardPriceForEventDateWithPositiveRegularBoardPriceSetsRegularBoardPrice()
 {
     $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array());
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic));
     $this->fixture->setRegularBoardPrice(42.42);
     self::assertEquals(42.42, $topic->getRegularBoardPrice());
 }
Пример #2
0
 /**
  * @test
  */
 public function setRegularBoardPriceForSingleEventWithPositiveRegularBoardPriceSetsRegularBoardPrice()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE));
     $this->fixture->setRegularBoardPrice(42.42);
     self::assertEquals(42.42, $this->fixture->getRegularBoardPrice());
 }