/** * @test */ public function setNotesForSingleEventSetsNotes() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE)); $this->fixture->setNotes('Don\'t forget this.'); self::assertEquals('Don\'t forget this.', $this->fixture->getNotes()); }
/** * @test */ public function getNotesForEventDateWithNotesReturnsNotes() { $topic = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getLoadedTestingModel(array('notes' => 'Don\'t forget this.')); $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic)); self::assertEquals('Don\'t forget this.', $this->fixture->getNotes()); }