ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
8
class
OutboxTest
extends
\PHPUnit_Framework_TestCase
{
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
}
php
An exception for terminatinating execution or to throw for unit testing.
PHPUnit_Framework_TestCase
Sabre\CalDAV\Plugin\NS_CALDAV
const NS_CALDAV
This is the official CalDAV namespace.
Definition:
Plugin.php:33
Sabre\CalDAV\Schedule\OutboxTest
Definition:
OutboxTest.php:8
Sabre\CalDAV\Schedule\OutboxTest\testSetup
testSetup()
Definition:
OutboxTest.php:10
Sabre\CalDAV\Schedule\Outbox
The CalDAV scheduling outbox.
Definition:
Outbox.php:20
Sabre\CalDAV\Schedule
Definition:
IInbox.php:3
Sabre\CalDAV
Sabre\DAV
libs
composer
vendor
sabre
dav
tests
Sabre
CalDAV
Schedule
OutboxTest.php
Generated on Thu Oct 2 2025 19:01:14 for ILIAS by
1.9.4 (using
Doxyfile
)