/** * @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()); }
/** * @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()); }
/** * @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()); }