23 $this->assertInstanceOf(
'Sabre\CalDAV\Xml\Property\Invite', $invite);
24 $this->assertEquals([], $invite->getValue());
35 'href' =>
'mailto:thedoctor@example.org',
36 'properties' => [
'{DAV:}displayname' =>
'The Doctor'],
37 'inviteStatus' => SP::INVITE_ACCEPTED,
38 'access' => SP::ACCESS_SHAREDOWNER,
41 'href' =>
'mailto:user1@example.org',
42 'inviteStatus' => SP::INVITE_ACCEPTED,
43 'access' => SP::ACCESS_READWRITE,
46 'href' =>
'mailto:user2@example.org',
47 'properties' => [
'{DAV:}displayname' =>
'John Doe'],
48 'inviteStatus' => SP::INVITE_DECLINED,
49 'access' => SP::ACCESS_READ,
52 'href' =>
'mailto:user3@example.org',
53 'properties' => [
'{DAV:}displayname' =>
'Joe Shmoe'],
54 'inviteStatus' => SP::INVITE_NORESPONSE,
55 'access' => SP::ACCESS_READ,
56 'comment' =>
'Something, something',
59 'href' =>
'mailto:user4@example.org',
60 'properties' => [
'{DAV:}displayname' =>
'Hoe Boe'],
61 'inviteStatus' => SP::INVITE_INVALID,
62 'access' => SP::ACCESS_READ,
66 $xml = $this->
write([
'{DAV:}root' => $property]);
68 $this->assertXmlStringEqualsXmlString(
72 <d:href>mailto:thedoctor@example.org</d:href>
73 <cs:common-name>The Doctor</cs:common-name>
80 <d:href>mailto:user1@example.org</d:href>
87 <d:href>mailto:user2@example.org</d:href>
88 <cs:common-name>John Doe</cs:common-name>
91 <cs:invite-noresponse/>
95 <d:href>mailto:user3@example.org</d:href>
96 <cs:common-name>Joe Shmoe</cs:common-name>
97 <cs:summary>Something, something</cs:summary>
104 <d:href>mailto:user4@example.org</d:href>
105 <cs:common-name>Hoe Boe</cs:common-name>
An exception for terminatinating execution or to throw for unit testing.
const NS_CALDAV
This is the official CalDAV namespace.
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
testSerialize()
@depends testSimple
This plugin implements HTTP requests and properties related to:
This class represents the {DAV:}sharee element.