ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SupportedAddressDataTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CardDAV\Xml\Property
;
4
5
use
Sabre\CardDAV
;
6
use
Sabre\DAV
;
7
8
class
SupportedAddressDataTest
extends
DAV\Xml\XmlTest
{
9
10
function
testSimple
() {
11
12
$property =
new
SupportedAddressData
();
13
$this->assertInstanceOf(
'Sabre\CardDAV\Xml\Property\SupportedAddressData'
, $property);
14
15
}
16
20
function
testSerialize
() {
21
22
$property =
new
SupportedAddressData
();
23
24
$this->namespaceMap[
CardDAV\Plugin::NS_CARDDAV
] =
'card'
;
25
$xml
= $this->
write
([
'{DAV:}root'
=> $property]);
26
27
$this->assertXmlStringEqualsXmlString(
28
'<?xml version="1.0"?>
29
<d:root xmlns:card="'
. CardDAV\
Plugin::NS_CARDDAV
.
'" xmlns:d="DAV:">'
.
30
'<card:address-data-type content-type="text/vcard" version="3.0"/>'
.
31
'<card:address-data-type content-type="text/vcard" version="4.0"/>'
.
32
'<card:address-data-type content-type="application/vcard+json" version="4.0"/>'
.
33
'</d:root>
34
'
,
$xml
);
35
36
}
37
38
}
Sabre\DAV
Sabre\CardDAV\Plugin\NS_CARDDAV
const NS_CARDDAV
xml namespace for CardDAV elements
Definition:
Plugin.php:33
Sabre\DAV\Xml\XmlTest
Definition:
XmlTest.php:8
Sabre\CardDAV\Xml\Property\SupportedAddressData
Supported-address-data property.
Definition:
SupportedAddressData.php:23
Sabre\CardDAV\Xml\Property\SupportedAddressDataTest\testSimple
testSimple()
Definition:
SupportedAddressDataTest.php:10
Sabre\CardDAV
Definition:
AddressBook.php:3
Sabre\CardDAV\Xml\Property\SupportedAddressDataTest\testSerialize
testSerialize()
testSimple
Definition:
SupportedAddressDataTest.php:20
$xml
$xml
Definition:
fetch_windows_zones.php:11
Sabre\CardDAV\Xml\Property
Definition:
SupportedAddressData.php:3
php
Sabre\CardDAV\Xml\Property\SupportedAddressDataTest
Definition:
SupportedAddressDataTest.php:8
Sabre\DAV\Xml\XmlTest\write
write($input)
Definition:
XmlTest.php:14
libs
composer
vendor
sabre
dav
tests
Sabre
CardDAV
Xml
Property
SupportedAddressDataTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)