18 $this->caldavBackend->createCalendar(
25 $this->caldavBackend->createCalendar(
44 CREATED:20140109T204404Z
45 UID:AADC6438-18CF-4B52-8DD2-EF9AD75ADE83
46 DTEND;TZID=America/Toronto:20140107T110000
48 ATTENDEE;CN=
"Administrator";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:user1.sabredav@sabredav.org
49 ATTENDEE;CN=
"Roxy Kesh";CUTYPE=INDIVIDUAL;EMAIL=
"user2.sabredav@sabrdav.org";
50 PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:
user2.sabredav@sabredav.org
52 DTSTART;TZID=America/Toronto:20140107T100000
53 DTSTAMP:20140109T204422Z
54 ORGANIZER;CN=
"Administrator":mailto:user1.sabredav@sabredav.org
68 $this->assertEquals(201,
$response->getStatus(),
'Incorrect status code received. Response body:' .
$response->getBodyAsString());
75 $resultVObj->VEVENT->ATTENDEE[1][
'SCHEDULE-STATUS']->getValue()
81 $this->assertInstanceOf(
'\Sabre\VObject\ITip\Message',
$message);
82 $this->assertEquals(
'mailto:user2.sabredav@sabredav.org',
$message->recipient);
83 $this->assertEquals(
'Roxy Kesh',
$message->recipientName);
84 $this->assertEquals(
'mailto:user1.sabredav@sabredav.org',
$message->sender);
85 $this->assertEquals(
'Administrator',
$message->senderName);
86 $this->assertEquals(
'REQUEST',
$message->method);
88 $this->assertEquals(
'REQUEST',
$message->message->METHOD->getValue());
foreach($paths as $path) $request
The Request class represents a single HTTP request.
catch(Exception $e) $message
This class may be used as a basis for other webdav-related unittests.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.