[Pkg-owncloud-commits] [php-sabredav] 145/163: Added another test for the Tree class.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 18:55:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag upstream/2.0.0_beta1
in repository php-sabredav.
commit 37ebeba723d72d0cbfbc0ad0f0e3d2bc6eb5d093
Author: Evert Pot <me at evertpot.com>
Date: Thu May 15 14:43:23 2014 -0400
Added another test for the Tree class.
---
tests/Sabre/DAV/TreeTest.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/Sabre/DAV/TreeTest.php b/tests/Sabre/DAV/TreeTest.php
index 6d2f4d1..18df5f9 100644
--- a/tests/Sabre/DAV/TreeTest.php
+++ b/tests/Sabre/DAV/TreeTest.php
@@ -61,6 +61,18 @@ class TreeTest extends \PHPUnit_Framework_TestCase {
}
+ function testGetMultipleNodes() {
+
+ $tree = new TreeMock();
+ $result = $tree->getMultipleNodes(['hi/sub', 'hi/file']);
+ $this->assertArrayHasKey('hi/sub', $result);
+ $this->assertArrayHasKey('hi/file', $result);
+
+ $this->assertEquals('sub', $result['hi/sub']->getName());
+ $this->assertEquals('file', $result['hi/file']->getName());
+
+ }
+
}
class TreeMock extends Tree {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list