Lines Matching refs:result
25 $result = $server->getPropertiesForPath('', $requestedProperties);
26 $result = $result[0];
28 $this->assertEquals(1,count($result[200]));
29 $this->assertArrayHasKey('{DAV:}principal-collection-set',$result[200]);
30 …$this->assertInstanceOf('Sabre\\DAV\\Xml\\Property\\Href', $result[200]['{DAV:}principal-collectio…
38 $this->assertEquals($expected, $result[200]['{DAV:}principal-collection-set']->getHrefs());
56 $result = $fakeServer->getPropertiesForPath('', $requestedProperties);
57 $result = $result[0];
59 $this->assertEquals(1,count($result[200]));
60 $this->assertArrayHasKey('{DAV:}current-user-principal',$result[200]);
61 …$this->assertInstanceOf('Sabre\DAVACL\Xml\Property\Principal', $result[200]['{DAV:}current-user-pr…
62 …$this->assertEquals(Xml\Property\Principal::UNAUTHENTICATED, $result[200]['{DAV:}current-user-prin…
67 $result = $fakeServer->getPropertiesForPath('', $requestedProperties);
68 $result = $result[0];
70 $this->assertEquals(1,count($result[200]));
71 $this->assertArrayHasKey('{DAV:}current-user-principal',$result[200]);
72 …$this->assertInstanceOf('Sabre\DAVACL\Xml\Property\Principal', $result[200]['{DAV:}current-user-pr…
73 …$this->assertEquals(Xml\Property\Principal::HREF, $result[200]['{DAV:}current-user-principal']->ge…
74 … $this->assertEquals('principals/admin/', $result[200]['{DAV:}current-user-principal']->getHref());
88 $result = $server->getPropertiesForPath('', $requestedProperties);
89 $result = $result[0];
91 $this->assertEquals(1,count($result[200]));
92 $this->assertArrayHasKey('{DAV:}supported-privilege-set',$result[200]);
93 …$this->assertInstanceOf('Sabre\\DAVACL\\Xml\\Property\\SupportedPrivilegeSet', $result[200]['{DAV:…
97 $prop = $result[200]['{DAV:}supported-privilege-set'];
98 $result = $server->xml->write('{DAV:}root', $prop);
126 $dom2->loadXML($result);
132 …dxpath->query($xpath)->length . ' elements, while we expected ' . $count. ' Full XML: ' . $result);
167 $result = $server->getPropertiesForPath('foo', $requestedProperties);
168 $result = $result[0];
170 …this->assertEquals(1,count($result[200]),'The {DAV:}acl property did not return from the list. Ful…
171 $this->assertArrayHasKey('{DAV:}acl',$result[200]);
172 $this->assertInstanceOf('Sabre\\DAVACL\\Xml\Property\\Acl', $result[200]['{DAV:}acl']);
205 $result = $server->getPropertiesForPath('foo', $requestedProperties);
206 $result = $result[0];
208 …ssertEquals(1,count($result[200]),'The {DAV:}acl-restrictions property did not return from the lis…
209 $this->assertArrayHasKey('{DAV:}acl-restrictions',$result[200]);
210 …$this->assertInstanceOf('Sabre\\DAVACL\\Xml\\Property\\AclRestrictions', $result[200]['{DAV:}acl-r…
231 $result = $fakeServer->getPropertiesForPath('principals/user', $requestedProperties);
232 $result = $result[0];
234 $this->assertTrue(isset($result[200]));
235 $this->assertTrue(isset($result[200]['{DAV:}alternate-URI-set']));
236 …$this->assertInstanceOf('Sabre\\DAV\\Xml\\Property\\Href', $result[200]['{DAV:}alternate-URI-set']…
238 $this->assertEquals([], $result[200]['{DAV:}alternate-URI-set']->getHrefs());
260 $result = $fakeServer->getPropertiesForPath('principals/user', $requestedProperties);
261 $result = $result[0];
263 $this->assertTrue(isset($result[200]));
264 $this->assertTrue(isset($result[200]['{DAV:}principal-URL']));
265 … $this->assertInstanceOf('Sabre\\DAV\\Xml\\Property\\Href', $result[200]['{DAV:}principal-URL']);
267 $this->assertEquals('principals/user/', $result[200]['{DAV:}principal-URL']->getHref());
289 $result = $fakeServer->getPropertiesForPath('principals/user', $requestedProperties);
290 $result = $result[0];
292 $this->assertTrue(isset($result[200]));
293 $this->assertTrue(isset($result[200]['{DAV:}group-member-set']));
294 …$this->assertInstanceOf('Sabre\\DAV\\Xml\\Property\\Href', $result[200]['{DAV:}group-member-set']);
296 $this->assertEquals([], $result[200]['{DAV:}group-member-set']->getHrefs());
316 $result = $fakeServer->getPropertiesForPath('principals/user', $requestedProperties);
317 $result = $result[0];
319 $this->assertTrue(isset($result[200]));
320 $this->assertTrue(isset($result[200]['{DAV:}group-membership']));
321 …$this->assertInstanceOf('Sabre\\DAV\\Xml\\Property\\Href', $result[200]['{DAV:}group-membership']);
323 $this->assertEquals([], $result[200]['{DAV:}group-membership']->getHrefs());
343 $result = $fakeServer->getPropertiesForPath('principals/user', $requestedProperties);
344 $result = $result[0];
346 $this->assertTrue(isset($result[200]));
347 $this->assertTrue(isset($result[200]['{DAV:}displayname']));
349 $this->assertEquals('user', $result[200]['{DAV:}displayname']);