/** * @test */ public function setTeaserForSingleEventSetsTeaser() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE)); $this->fixture->setTeaser('wow, this is teasing'); self::assertEquals('wow, this is teasing', $this->fixture->getTeaser()); }
/** * @test */ public function getTeaserForEventDateWithTeaserReturnsTeaser() { $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('teaser' => 'wow, this is teasing')); $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic)); self::assertEquals('wow, this is teasing', $this->fixture->getTeaser()); }