コード例 #1
0
 public function test_addEntry_getEntries()
 {
     $view = new CalendarView();
     $id = 3;
     $view->addColumn("Montag", "", $id);
     $entry = array('title' => "Test Eintrag", 'start' => "0800", 'end' => "0900");
     $view->addEntry($entry);
     $entries = $view->getEntries();
     $this->assertInternalType("array", $entries);
     $this->assertNotNull($entries['day_' . $id]);
 }