コード例 #1
0
ファイル: SingleEventTest.php プロジェクト: Konafets/seminars
 /**
  * @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());
 }
コード例 #2
0
ファイル: EventDateTest.php プロジェクト: kurtkk/seminars
 /**
  * @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());
 }