27 $this->assertEquals(
'user1', $this->
s->getName());
36 $this->
s->setName(
'user2');
51 $this->assertNull($this->
s->getLastModified());
60 $this->
s->createFile(
'bla');
69 $this->
s->createDirectory(
'bla');
75 $child = $this->
s->getChild(
'book1');
76 $this->assertInstanceOf(
'Sabre\\CardDAV\\AddressBook', $child);
77 $this->assertEquals(
'book1', $child->getName());
86 $this->
s->getChild(
'book2');
92 $children = $this->
s->getChildren();
93 $this->assertEquals(2, count($children));
94 $this->assertInstanceOf(
'Sabre\\CardDAV\\AddressBook', $children[0]);
95 $this->assertEquals(
'book1', $children[0]->getName());
105 $this->
s->createExtendedCollection(
'book2',
new MkCol($resourceType, [
'{DAV:}displayname' =>
'a-book 2']));
107 $this->assertEquals([
110 '{DAV:}displayname' =>
'a-book 2',
111 'principaluri' =>
'principals/user1',
112 ], $this->backend->addressBooks[2]);
124 $this->
s->createExtendedCollection(
'book2',
new MkCol($resourceType, [
'{DAV:}displayname' =>
'a-book 2']));
131 $this->assertEquals(
'principals/user1', $this->
s->getOwner());
132 $this->assertNull($this->
s->getGroup());
133 $this->assertEquals([
135 'privilege' =>
'{DAV:}all',
136 'principal' =>
'{DAV:}owner',
139 ], $this->
s->getACL());
148 $this->
s->setACL([]);
155 $this->
s->getSupportedPrivilegeSet()
testCreateExtendedCollectionInvalid()
Sabre
const NS_CARDDAV
xml namespace for CardDAV elements
testCreateExtendedCollection()
testCreateDirectory()
Sabre
testGetSupportedPrivilegeSet()
This class represents a MKCOL operation.