function testUpdateCalendar() { $abstract = new Sabre_CalDAV_Backend_AbstractMock(); $this->assertEquals(false, $abstract->updateCalendar('randomid', array('{DAV:}displayname' => 'anything'))); }
function testCalendarQuery() { $abstract = new Sabre_CalDAV_Backend_AbstractMock(); $filters = array('name' => 'VCALENDAR', 'comp-filters' => array(array('name' => 'VEVENT', 'comp-filters' => array(), 'prop-filters' => array(), 'is-not-defined' => false, 'time-range' => null)), 'prop-filters' => array(), 'is-not-defined' => false, 'time-range' => null); $this->assertEquals(array('event1.ics'), $abstract->calendarQuery(1, $filters)); }