14 '{DAV:}displayname' =>
'baz',
15 '{http://calendarserver.org/ns/}source' => new \Sabre\DAV\Xml\Property\Href(
'http://example.org/test.ics'),
18 'uri' =>
'principals/user1' 21 $this->backend->createSubscription(
'principals/user1',
'uri', $props);
30 $this->assertEquals(
'user1', $instance->getName());
37 $children = $instance->getChildren();
38 $this->assertEquals(1, count($children));
39 foreach ($children as $child) {
40 if ($child instanceof Subscriptions\Subscription) {
44 $this->fail(
'There were no subscription nodes in the calendar home');
51 $rt = [
'{DAV:}collection',
'{http://calendarserver.org/ns/}subscribed'];
54 '{DAV:}displayname' =>
'baz',
55 '{http://calendarserver.org/ns/}source' => new \Sabre\DAV\Xml\Property\Href(
'http://example.org/test2.ics'),
57 $instance->createExtendedCollection(
'sub2',
new MkCol($rt, $props));
59 $children = $instance->getChildren();
60 $this->assertEquals(2, count($children));
70 'uri' =>
'principals/user1' 75 $rt = [
'{DAV:}collection',
'{http://calendarserver.org/ns/}subscribed'];
78 '{DAV:}displayname' =>
'baz',
79 '{http://calendarserver.org/ns/}source' => new \Sabre\DAV\Xml\Property\Href(
'http://example.org/test2.ics'),
81 $uC->createExtendedCollection(
'sub2',
new MkCol($rt, $props));
The CalendarHome represents a node that is usually in a users' calendar-homeset.
testNoSubscriptionSupport()
This class represents a MKCOL operation.
This is a mock CalDAV backend that supports subscriptions.