ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AllowedSharingModesTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CalDAV\Xml\Property
;
4
5
use
Sabre\CalDAV
;
6
use
Sabre\DAV
;
7
8
class
AllowedSharingModesTest
extends
DAV\Xml\XmlTest
{
9
10
function
testSimple
() {
11
12
$sccs =
new
AllowedSharingModes
(
true
,
true
);
13
$this->assertInstanceOf(
'Sabre\CalDAV\Xml\Property\AllowedSharingModes'
, $sccs);
14
15
}
16
20
function
testSerialize
() {
21
22
$property =
new
AllowedSharingModes
(
true
,
true
);
23
24
$this->namespaceMap[
CalDAV\Plugin::NS_CALDAV
] =
'cal'
;
25
$this->namespaceMap[
CalDAV\Plugin::NS_CALENDARSERVER
] =
'cs'
;
26
$xml
= $this->
write
([
'{DAV:}root'
=> $property]);
27
28
$this->assertXmlStringEqualsXmlString(
29
'<?xml version="1.0"?>
30
<d:root xmlns:d="DAV:" xmlns:cal="'
. CalDAV\
Plugin::NS_CALDAV
.
'" xmlns:cs="'
. CalDAV\
Plugin::NS_CALENDARSERVER
.
'">
31
<cs:can-be-shared/>
32
<cs:can-be-published/>
33
</d:root>
34
'
,
$xml
);
35
36
}
37
38
}
Sabre\DAV
Sabre\DAV\Xml\XmlTest
Definition:
XmlTest.php:8
Sabre\CalDAV\Plugin\NS_CALENDARSERVER
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
Definition:
Plugin.php:38
Sabre\CalDAV
Sabre\CalDAV\Xml\Property
Definition:
AllowedSharingModes.php:3
Sabre\CalDAV\Xml\Property\AllowedSharingModesTest\testSimple
testSimple()
Definition:
AllowedSharingModesTest.php:10
Sabre\CalDAV\Xml\Property\AllowedSharingModes
AllowedSharingModes.
Definition:
AllowedSharingModes.php:25
$xml
$xml
Definition:
fetch_windows_zones.php:11
php
Sabre\CalDAV\Xml\Property\AllowedSharingModesTest
Definition:
AllowedSharingModesTest.php:8
Sabre\CalDAV\Plugin\NS_CALDAV
const NS_CALDAV
This is the official CalDAV namespace.
Definition:
Plugin.php:33
Sabre\CalDAV\Xml\Property\AllowedSharingModesTest\testSerialize
testSerialize()
testSimple
Definition:
AllowedSharingModesTest.php:20
Sabre\DAV\Xml\XmlTest\write
write($input)
Definition:
XmlTest.php:14
libs
composer
vendor
sabre
dav
tests
Sabre
CalDAV
Xml
Property
AllowedSharingModesTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)