예제 #1
0
 /**
  * @depends testSetup
  */
 function testCalendarQuery()
 {
     $backend = new CalDAV\Backend\MockScheduling();
     $inbox = new Inbox($backend, 'principals/user1');
     $this->assertEquals(0, count($inbox->getChildren()));
     $backend->createSchedulingObject('principals/user1', 'schedule1.ics', "BEGIN:VCALENDAR\r\nEND:VCALENDAR");
     $this->assertEquals(['schedule1.ics'], $inbox->calendarQuery(['name' => 'VCALENDAR', 'comp-filters' => [], 'prop-filters' => [], 'is-not-defined' => false]));
 }