summaryrefslogtreecommitdiffstats
path: root/tests/lib/connector
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-22 16:49:04 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-22 16:49:04 +0200
commit45f9083a58b19641662a35e98f78e3b047fc9b42 (patch)
tree4317ab7bd3bbc76059d98db17a4cef9f95ba2e63 /tests/lib/connector
parenta88b370dc84c4dfdcab7a128900829fbe8204ca7 (diff)
downloadnextcloud-server-45f9083a58b19641662a35e98f78e3b047fc9b42.tar.gz
nextcloud-server-45f9083a58b19641662a35e98f78e3b047fc9b42.zip
Make an assertion in risky test testGetNodeForPathRoot
Diffstat (limited to 'tests/lib/connector')
-rw-r--r--tests/lib/connector/sabre/objecttree.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/connector/sabre/objecttree.php b/tests/lib/connector/sabre/objecttree.php
index 00aab94e012..1eaddf53a11 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));
}
}