ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
EmailAddressSetTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CalDAV\Xml\Property
;
4
5
use
Sabre\DAV\Xml\XmlTest
;
6
7
class
EmailAddressSetTest
extends
XmlTest
{
8
9
protected
$namespaceMap
= [
10
\Sabre\CalDAV\Plugin::NS_CALENDARSERVER
=>
'cs'
,
11
'DAV:'
=>
'd'
,
12
];
13
14
function
testSimple
() {
15
16
$eas =
new
EmailAddressSet
([
'foo@example.org'
]);
17
$this->assertEquals([
'foo@example.org'
], $eas->getValue());
18
19
}
20
24
function
testSerialize
() {
25
26
$property =
new
EmailAddressSet
([
'foo@example.org'
]);
27
28
$xml
= $this->
write
([
29
'{DAV:}root'
=> $property
30
]);
31
32
$this->assertXmlStringEqualsXmlString(
33
'<?xml version="1.0"?>
34
<d:root xmlns:d="DAV:" xmlns:cs="'
. \
Sabre
\CalDAV\
Plugin::NS_CALENDARSERVER
.
'">
35
<cs:email-address>foo@example.org</cs:email-address>
36
</d:root>'
,
$xml
);
37
38
}
39
40
}
Sabre\CalDAV\Xml\Property\EmailAddressSet
email-address-set property
Definition:
EmailAddressSet.php:20
Sabre\CalDAV\Xml\Property\EmailAddressSetTest
Definition:
EmailAddressSetTest.php:7
Sabre\DAV\Xml\XmlTest
Definition:
XmlTest.php:8
Sabre
Sabre\CalDAV\Xml\Property\EmailAddressSetTest\testSimple
testSimple()
Definition:
EmailAddressSetTest.php:14
Sabre\CalDAV\Plugin\NS_CALENDARSERVER
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
Definition:
Plugin.php:38
Sabre\CalDAV\Xml\Property
Definition:
AllowedSharingModes.php:3
Sabre\CalDAV\Xml\Property\EmailAddressSetTest\$namespaceMap
$namespaceMap
Definition:
EmailAddressSetTest.php:9
$xml
$xml
Definition:
fetch_windows_zones.php:11
Sabre\CalDAV\Xml\Property\EmailAddressSetTest\testSerialize
testSerialize()
testSimple
Definition:
EmailAddressSetTest.php:24
php
XmlTest
Sabre\DAV\Xml\XmlTest\write
write($input)
Definition:
XmlTest.php:14
libs
composer
vendor
sabre
dav
tests
Sabre
CalDAV
Xml
Property
EmailAddressSetTest.php
Generated on Thu Feb 27 2025 19:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)