ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
OutboxTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\CalDAV\Schedule;
4 
5 use Sabre\CalDAV;
6 use Sabre\DAV;
7 
9 
10  function testSetup() {
11 
12  $outbox = new Outbox('principals/user1');
13  $this->assertEquals('outbox', $outbox->getName());
14  $this->assertEquals([], $outbox->getChildren());
15  $this->assertEquals('principals/user1', $outbox->getOwner());
16  $this->assertEquals(null, $outbox->getGroup());
17 
18  $this->assertEquals([
19  [
20  'privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-send',
21  'principal' => 'principals/user1',
22  'protected' => true,
23  ],
24  [
25  'privilege' => '{DAV:}read',
26  'principal' => 'principals/user1',
27  'protected' => true,
28  ],
29  [
30  'privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-send',
31  'principal' => 'principals/user1/calendar-proxy-write',
32  'protected' => true,
33  ],
34  [
35  'privilege' => '{DAV:}read',
36  'principal' => 'principals/user1/calendar-proxy-read',
37  'protected' => true,
38  ],
39  [
40  'privilege' => '{DAV:}read',
41  'principal' => 'principals/user1/calendar-proxy-write',
42  'protected' => true,
43  ],
44  ], $outbox->getACL());
45 
46  }
47 
48 }
The CalDAV scheduling outbox.
Definition: Outbox.php:20
const NS_CALDAV
This is the official CalDAV namespace.
Definition: Plugin.php:33