From 1deb6aadd305d9c211d5cd640cfa7780119d644c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 6 Aug 2014 12:06:41 +0200 Subject: return null instead of throwing an exception --- tests/lib/files/node/folder.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/lib/files/node/folder.php') diff --git a/tests/lib/files/node/folder.php b/tests/lib/files/node/folder.php index bd9c2890cf0..436161aba72 100644 --- a/tests/lib/files/node/folder.php +++ b/tests/lib/files/node/folder.php @@ -513,9 +513,6 @@ class Folder extends \PHPUnit_Framework_TestCase { $this->assertEquals('/bar/foo/qwerty', $result[0]->getPath()); } - /** - * @expectedException \OCP\Files\NotFoundException - */ public function testGetByIdOutsideFolder() { $manager = $this->getMock('\OC\Files\Mount\Manager'); /** @@ -550,7 +547,8 @@ class Folder extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($mount)); $node = new \OC\Files\Node\Folder($root, $view, '/bar/foo'); - $node->getById(1); + $result = $node->getById(1); + $this->assertCount(0, $result); } public function testGetByIdMultipleStorages() { -- cgit v1.2.3