Ejemplo n.º 1
0
 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]);
 }
Ejemplo n.º 2
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]);
 }
Ejemplo n.º 3
0
 function testDelete()
 {
     $this->calendar->delete();
     $calendars = $this->backend->getCalendarsForUser('principals/user1');
     $this->assertEquals(1, count($calendars));
 }