Definition at line 8 of file DeliverNewEventTest.php.
◆ setUp()
Sabre\CalDAV\Schedule\DeliverNewEventTest::setUp |
( |
| ) |
|
Definition at line 15 of file DeliverNewEventTest.php.
18 $this->caldavBackend->createCalendar(
25 $this->caldavBackend->createCalendar(
◆ testDelivery()
Sabre\CalDAV\Schedule\DeliverNewEventTest::testDelivery |
( |
| ) |
|
Definition at line 35 of file DeliverNewEventTest.php.
References $message, $messages, $request, $response, $result, Sabre\VObject\Reader\read(), Sabre\DAVServerTest\request(), and user2.
37 $request =
new Request(
'PUT',
'/calendars/user1/default/foo.ics');
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());
70 $result = $this->
request(
new Request(
'GET',
'/calendars/user1/default/foo.ics'))->getBody();
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
catch(Exception $e) $message
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.
◆ $autoLogin
Sabre\CalDAV\Schedule\DeliverNewEventTest::$autoLogin = 'user1' |
◆ $setupACL
Sabre\CalDAV\Schedule\DeliverNewEventTest::$setupACL = true |
◆ $setupCalDAV
Sabre\CalDAV\Schedule\DeliverNewEventTest::$setupCalDAV = true |
◆ $setupCalDAVScheduling
Sabre\CalDAV\Schedule\DeliverNewEventTest::$setupCalDAVScheduling = true |
The documentation for this class was generated from the following file: