]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/tests/Sabre/DAVACL/Property/ACLRestrictionsTest.php
removed community home addon
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / DAVACL / Property / ACLRestrictionsTest.php
1 <?php
2
3 class Sabre_DAVACL_Property_ACLRestrictionsTest extends PHPUnit_Framework_TestCase {
4
5     function testConstruct() {
6
7         $prop = new Sabre_DAVACL_Property_AclRestrictions();
8
9     }
10
11     function testSerializeEmpty() {
12
13         $dom = new DOMDocument('1.0');
14         $root = $dom->createElementNS('DAV:','d:root');
15
16         $dom->appendChild($root);
17
18         $acl = new Sabre_DAVACL_Property_AclRestrictions();
19         $acl->serialize(new Sabre_DAV_Server(), $root);
20
21         $xml = $dom->saveXML();
22         $expected = '<?xml version="1.0"?>
23 <d:root xmlns:d="DAV:"><d:grant-only/><d:no-invert/></d:root>
24 ';
25         $this->assertEquals($expected, $xml);
26
27     }
28
29
30 }