Lines Matching refs:this

28         if (!SABRE_HASSQLITE) $this->markTestSkipped('SQLite driver is not available');
30 $this->backend = TestUtil::getBackend();
32 $this->calendars = $this->backend->getCalendarsForUser('principals/user1');
33 $this->assertEquals(2, count($this->calendars));
34 $this->calendar = new Calendar($this->backend, $this->calendars[0]);
41 unset($this->backend);
47 $this->assertEquals($this->calendars[0]['uri'], $this->calendar->getName());
60 $result = $this->calendar->propPatch($propPatch);
63 $this->assertEquals(true, $result);
65 $calendars2 = $this->backend->getCalendarsForUser('principals/user1');
66 $this->assertEquals('NewName',$calendars2[0]['{DAV:}displayname']);
79 $result = $this->calendar->getProperties($question);
81 foreach($question as $q) $this->assertArrayHasKey($q,$result);
83 …$this->assertEquals(array('VEVENT','VTODO'), $result['{urn:ietf:params:xml:ns:caldav}supported-cal…
93 $this->calendar->getChild('randomname');
102 $children = $this->calendar->getChildren();
103 $this->assertEquals(1,count($children));
105 $this->assertTrue($children[0] instanceof CalendarObject);
114 $this->assertFalse($this->calendar->childExists('foo'));
116 $children = $this->calendar->getChildren();
117 $this->assertTrue($this->calendar->childExists($children[0]->getName()));
127 $this->calendar->createDirectory('hello');
136 $this->calendar->setName('hello');
142 $this->assertNull($this->calendar->getLastModified());
152 $this->calendar->createFile('hello',$file);
154 $file = $this->calendar->getChild('hello');
155 $this->assertTrue($file instanceof CalendarObject);
165 $calendar = new Calendar($this->backend, $this->calendars[1]);
169 $this->assertTrue($file instanceof CalendarObject);
175 $this->calendar->delete();
177 $calendars = $this->backend->getCalendarsForUser('principals/user1');
178 $this->assertEquals(1, count($calendars));
183 $this->assertEquals('principals/user1',$this->calendar->getOwner());
189 $this->assertNull($this->calendar->getGroup());
227 $this->assertEquals($expected, $this->calendar->getACL());
236 $this->calendar->setACL(array());
242 $result = $this->calendar->getSupportedPrivilegeSet();
244 $this->assertEquals(
253 $this->assertEquals(2, $this->calendar->getSyncToken());
261 $this->assertEquals(2, $this->calendar->getSyncToken());
268 $this->assertNull($calendar->getSyncToken());
274 $this->assertEquals([
279 ], $this->calendar->getChanges(1, 1));
286 $this->assertNull($calendar->getChanges(1,null));