3 class Sabre_DAVACL_Property_ACLRestrictionsTest extends PHPUnit_Framework_TestCase {
5 function testConstruct() {
7 $prop = new Sabre_DAVACL_Property_AclRestrictions();
11 function testSerializeEmpty() {
13 $dom = new DOMDocument('1.0');
14 $root = $dom->createElementNS('DAV:','d:root');
16 $dom->appendChild($root);
18 $acl = new Sabre_DAVACL_Property_AclRestrictions();
19 $acl->serialize(new Sabre_DAV_Server(), $root);
21 $xml = $dom->saveXML();
22 $expected = '<?xml version="1.0"?>
23 <d:root xmlns:d="DAV:"><d:grant-only/><d:no-invert/></d:root>
25 $this->assertEquals($expected, $xml);