Пример #1
0
 /**
  * @test
  */
 public function hasCreditPointsForSingleEventWithCreditPointsReturnsTrue()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'credit_points' => 42));
     self::assertTrue($this->fixture->hasCreditPoints());
 }
Пример #2
0
 /**
  * @test
  */
 public function hasCreditPointsForEventDateWithCreditPointsReturnsTrue()
 {
     $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('credit_points' => 42));
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic));
     self::assertTrue($this->fixture->hasCreditPoints());
 }