/** * @test */ public function hasNotesForSingleEventWithNotesReturnsTrue() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'notes' => 'Don\'t forget this.')); self::assertTrue($this->fixture->hasNotes()); }
/** * @test */ public function hasNotesForEventDateWithNotesReturnsTrue() { $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::assertTrue($this->fixture->hasNotes()); }