[Pkg-owncloud-commits] [owncloud] 71/205: Make an assertion in risky test testGetNodeForPathRoot

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:36:57 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit 45f9083a58b19641662a35e98f78e3b047fc9b42
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Mon Jun 22 16:49:04 2015 +0200

    Make an assertion in risky test testGetNodeForPathRoot
---
 tests/lib/connector/sabre/objecttree.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/lib/connector/sabre/objecttree.php b/tests/lib/connector/sabre/objecttree.php
index 00aab94..1eaddf5 100644
--- a/tests/lib/connector/sabre/objecttree.php
+++ b/tests/lib/connector/sabre/objecttree.php
@@ -264,6 +264,7 @@ class ObjectTree extends \Test\TestCase {
 
 		$tree->getNodeForPath($path);
 	}
+
 	public function testGetNodeForPathRoot() {
 		$path = '/';
 
@@ -285,6 +286,6 @@ class ObjectTree extends \Test\TestCase {
 		$tree = new \OC\Connector\Sabre\ObjectTree();
 		$tree->init($rootNode, $view, $mountManager);
 
-		$tree->getNodeForPath($path);
+		$this->assertInstanceOf('\Sabre\DAV\INode', $tree->getNodeForPath($path));
 	}
 }

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



More information about the Pkg-owncloud-commits mailing list