ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AclRestrictionsTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAVACL\Xml\Property
;
4
5
use
Sabre\DAV
;
6
use
Sabre\HTTP
;
7
8
class
AclRestrictionsTest
extends
\PHPUnit_Framework_TestCase
{
9
10
function
testConstruct
() {
11
12
$prop =
new
AclRestrictions
();
13
$this->assertInstanceOf(
'Sabre\DAVACL\Xml\Property\AclRestrictions'
, $prop);
14
15
}
16
17
function
testSerialize
() {
18
19
$prop =
new
AclRestrictions
();
20
$xml
= (
new
DAV\Server
())->xml->write(
'{DAV:}root'
, $prop);
21
22
$expected =
'<?xml version="1.0"?>
23
<d:root xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:grant-only/><d:no-invert/></d:root>'
;
24
25
$this->assertXmlStringEqualsXmlString($expected,
$xml
);
26
27
}
28
29
30
}
Sabre\DAV
Sabre\DAVACL\Xml\Property\AclRestrictionsTest\testSerialize
testSerialize()
Definition:
AclRestrictionsTest.php:17
Sabre\DAVACL\Xml\Property\AclRestrictionsTest
Definition:
AclRestrictionsTest.php:8
Sabre\HTTP
Definition:
ResponseMock.php:3
PHPUnit_Framework_TestCase
Sabre\DAVACL\Xml\Property
Definition:
Acl.php:3
Sabre\DAVACL\Xml\Property\AclRestrictionsTest\testConstruct
testConstruct()
Definition:
AclRestrictionsTest.php:10
Sabre\DAV\Server
Main DAV server class.
Definition:
Server.php:23
$xml
$xml
Definition:
fetch_windows_zones.php:11
php
Sabre\DAVACL\Xml\Property\AclRestrictions
AclRestrictions property.
Definition:
AclRestrictions.php:17
libs
composer
vendor
sabre
dav
tests
Sabre
DAVACL
Xml
Property
AclRestrictionsTest.php
Generated on Thu Feb 27 2025 19:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)