Page MenuHomePhabricator

AclRestrictionsTest.php
No OneTemporary

AclRestrictionsTest.php

<?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\DAVACL\Xml\Property\AclRestrictions', $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

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)

Event Timeline