[Pkg-owncloud-commits] [php-sabredav] 154/220: Fixed unitttest

David Prévot taffit at moszumanska.debian.org
Thu May 12 01:21:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 9435a66319b2c814c691bf5401b7c6fe4d2462c2
Author: Evert Pot <me at evertpot.com>
Date:   Mon Apr 11 06:17:13 2016 -0400

    Fixed unitttest
---
 .../DAVACL/Xml/Property/SupportedPrivilegeSetTest.php     | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/tests/Sabre/DAVACL/Xml/Property/SupportedPrivilegeSetTest.php b/tests/Sabre/DAVACL/Xml/Property/SupportedPrivilegeSetTest.php
index ae6cd5b..36c0a59 100644
--- a/tests/Sabre/DAVACL/Xml/Property/SupportedPrivilegeSetTest.php
+++ b/tests/Sabre/DAVACL/Xml/Property/SupportedPrivilegeSetTest.php
@@ -77,16 +77,9 @@ class SupportedPrivilegeSetTest extends \PHPUnit_Framework_TestCase {
     function testToHtml() {
 
         $prop = new SupportedPrivilegeSet([
-            'privilege'  => '{DAV:}all',
-            'abstract'   => true,
-            'aggregates' => [
-                [
-                    'privilege' => '{DAV:}read',
-                ],
-                [
-                    'privilege'   => '{DAV:}write',
-                    'description' => 'booh',
-                ],
+            '{DAV:}read'  => [],
+            '{DAV:}write' => [
+                'description' => 'booh',
             ],
         ]);
         $html = new HtmlOutputHelper(
@@ -95,7 +88,7 @@ class SupportedPrivilegeSetTest extends \PHPUnit_Framework_TestCase {
         );
 
         $expected = <<<HTML
-<ul class="tree"><li><span title="{DAV:}all">d:all</span> <i>(abstract)</i>
+<ul class="tree"><li><span title="{DAV:}all">d:all</span>
 <ul>
 <li><span title="{DAV:}read">d:read</span></li>
 <li><span title="{DAV:}write">d:write</span> booh</li>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list