Пример #1
0
 /**
  * @test
  */
 public function setDescriptionForEventDateSetsDescription()
 {
     $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->setDescription('this is a great event.');
     self::assertEquals('this is a great event.', $topic->getDescription());
 }
Пример #2
0
 /**
  * @test
  */
 public function setDescriptionForSingleEventSetsDescription()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE));
     $this->fixture->setDescription('this is a great event.');
     self::assertEquals('this is a great event.', $this->fixture->getDescription());
 }
Пример #3
0
 /**
  * @test
  */
 public function hasDescriptionForEventTopicWithDescriptionReturnsTrue()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_TOPIC));
     $this->fixture->setDescription('this is a great event.');
     self::assertTrue($this->fixture->hasDescription());
 }