Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1841218
AclRestrictionsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
662 B
Subscribers
None
AclRestrictionsTest.php
View Options
<?php
namespace
Sabre\DAVACL\Xml\Property
;
use
Sabre\DAV
;
use
Sabre\HTTP
;
class
AclRestrictionsTest
extends
\PHPUnit_Framework_TestCase
{
function
testConstruct
()
{
$prop
=
new
AclRestrictions
();
$this
->
assertInstanceOf
(
'Sabre
\D
AVACL
\X
ml
\P
roperty
\A
clRestrictions'
,
$prop
);
}
function
testSerialize
()
{
$prop
=
new
AclRestrictions
();
$xml
=
(
new
DAV\Server
())->
xml
->
write
(
'{DAV:}root'
,
$prop
);
$expected
=
'<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:grant-only/><d:no-invert/></d:root>'
;
$this
->
assertXmlStringEqualsXmlString
(
$expected
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jan 7, 2:31 PM (3 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914078
Default Alt Text
AclRestrictionsTest.php (662 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment