12 $backend->addPrincipal([
13 'uri' =>
'principals/user/calendar-proxy-read',
15 $backend->addPrincipal([
16 'uri' =>
'principals/user/calendar-proxy-write',
18 $backend->addPrincipal([
19 'uri' =>
'principals/user/random',
21 return new User($backend, [
22 'uri' =>
'principals/user',
33 $u->createFile(
'test');
43 $u->createDirectory(
'test');
50 $child = $u->getChild(
'calendar-proxy-read');
51 $this->assertInstanceOf(
'Sabre\\CalDAV\\Principal\\ProxyRead', $child);
58 $child = $u->getChild(
'calendar-proxy-write');
59 $this->assertInstanceOf(
'Sabre\\CalDAV\\Principal\\ProxyWrite', $child);
69 $child = $u->getChild(
'foo');
79 $child = $u->getChild(
'random');
86 $children = $u->getChildren();
87 $this->assertEquals(2, count($children));
88 $this->assertInstanceOf(
'Sabre\\CalDAV\\Principal\\ProxyRead', $children[0]);
89 $this->assertInstanceOf(
'Sabre\\CalDAV\\Principal\\ProxyWrite', $children[1]);
96 $this->assertTrue($u->childExists(
'calendar-proxy-read'));
97 $this->assertTrue($u->childExists(
'calendar-proxy-write'));
98 $this->assertFalse($u->childExists(
'foo'));
106 'privilege' =>
'{DAV:}all',
107 'principal' =>
'{DAV:}owner',
111 'privilege' =>
'{DAV:}read',
112 'principal' =>
'principals/user/calendar-proxy-read',
116 'privilege' =>
'{DAV:}read',
117 'principal' =>
'principals/user/calendar-proxy-write',
123 $this->assertEquals($expected, $u->getACL());
testCreateDirectory()
Sabre
testGetChildNotFound2()
Sabre
testGetChildNotFound()
Sabre