function setup()
 {
     $this->backend = TestUtil::getBackend();
     $calendars = $this->backend->getCalendarsForUser('principals/user1');
     $this->assertEquals(2, count($calendars));
     $this->calendar = new Calendar($this->backend, $calendars[0]);
 }
 function setup()
 {
     if (!SABRE_HASSQLITE) {
         $this->markTestSkipped('SQLite driver is not available');
     }
     $this->backend = TestUtil::getBackend();
     $calendars = $this->backend->getCalendarsForUser('principals/user1');
     $this->assertEquals(2, count($calendars));
     $this->calendar = new Calendar($this->backend, $calendars[0]);
 }
Exemple #3
0
 function testDelete()
 {
     $this->calendar->delete();
     $calendars = $this->backend->getCalendarsForUser('principals/user1');
     $this->assertEquals(1, count($calendars));
 }