ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
PrincipalMatchReportTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAVACL\Xml\Request
;
4
5
class
PrincipalMatchReportTest
extends
\Sabre\DAV\Xml\XmlTest
{
6
7
protected
$elementMap
= [
8
9
'{DAV:}principal-match'
=>
'Sabre\DAVACL\Xml\Request\PrincipalMatchReport'
,
10
11
];
12
13
function
testDeserialize
() {
14
15
$xml
= <<<XML
16
<?xml version=
"1.0"
encoding=
"utf-8"
?>
17
<
D
:principal-match xmlns:
D
=
"DAV:"
>
18
<
D
:principal-
property
>
19
<
D
:owner/>
20
</
D
:principal-
property
>
21
</
D
:principal-match>
22
XML;
23
24
$result
= $this->
parse
(
$xml
);
25
26
$this->assertEquals(
PrincipalMatchReport::PRINCIPAL_PROPERTY
,
$result
[
'value'
]->type);
27
$this->assertEquals(
'{DAV:}owner'
,
$result
[
'value'
]->principalProperty);
28
29
}
30
31
function
testDeserializeSelf
() {
32
33
$xml
= <<<XML
34
<?xml version=
"1.0"
encoding=
"utf-8"
?>
35
<
D
:principal-match xmlns:
D
=
"DAV:"
>
36
<
D
:
self
/>
37
<
D
:prop>
38
<
D
:foo />
39
</
D
:prop>
40
</
D
:principal-match>
41
XML;
42
43
$result
= $this->
parse
(
$xml
);
44
45
$this->assertEquals(
PrincipalMatchReport::SELF
,
$result
[
'value'
]->type);
46
$this->assertNull(
$result
[
'value'
]->principalProperty);
47
$this->assertEquals([
'{DAV:}foo'
],
$result
[
'value'
]->properties);
48
49
}
50
51
}
$result
$result
Definition:
CleanUpTest.php:463
php
An exception for terminatinating execution or to throw for unit testing.
Sabre\DAVACL\Xml\Request\PrincipalMatchReportTest
Definition:
PrincipalMatchReportTest.php:5
Sabre\DAVACL\Xml\Request\PrincipalMatchReportTest\testDeserializeSelf
testDeserializeSelf()
Definition:
PrincipalMatchReportTest.php:31
Sabre\DAVACL\Xml\Request\PrincipalMatchReportTest\$elementMap
$elementMap
Definition:
PrincipalMatchReportTest.php:7
Sabre\DAVACL\Xml\Request\PrincipalMatchReportTest\testDeserialize
testDeserialize()
Definition:
PrincipalMatchReportTest.php:13
Sabre\DAVACL\Xml\Request\PrincipalMatchReport\SELF
const SELF
Report on a list of principals that match the current principal.
Definition:
PrincipalMatchReport.php:26
Sabre\DAVACL\Xml\Request\PrincipalMatchReport\PRINCIPAL_PROPERTY
const PRINCIPAL_PROPERTY
Report on a property on resources, such as {DAV:}owner, that match the current principal.
Definition:
PrincipalMatchReport.php:31
Sabre\DAV\Xml\XmlTest
Definition:
XmlTest.php:8
Sabre\DAV\Xml\XmlTest\parse
parse($xml, array $elementMap=[])
Definition:
XmlTest.php:26
$xml
$xml
Definition:
fetch_windows_zones.php:11
ILIAS\Data
Definition:
ClientId.php:4
Sabre\DAVACL\Xml\Request
Definition:
AclPrincipalPropSetReport.php:3
libs
composer
vendor
sabre
dav
tests
Sabre
DAVACL
Xml
Request
PrincipalMatchReportTest.php
Generated on Thu Oct 2 2025 19:01:15 for ILIAS by
1.9.4 (using
Doxyfile
)