summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-10-29 16:38:16 +0100
committerVincent Petry <pvince81@owncloud.com>2014-10-29 16:38:16 +0100
commit106b9eb55c154c6ef4fac47fb62f70dbbd98a126 (patch)
treeccdc5e17701226e8f0d15106fdd36c764f9e636d /tests
parent7d10ec41e6817472eb831c3891f7d0a0d514037c (diff)
parent16cfca6a5fb3db897246e6ac9ccb7420cf256240 (diff)
downloadnextcloud-server-106b9eb55c154c6ef4fac47fb62f70dbbd98a126.tar.gz
nextcloud-server-106b9eb55c154c6ef4fac47fb62f70dbbd98a126.zip
Merge pull request #11409 from owncloud/watcher-reuse
Pass the cached data to the filesystem watcher
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/view.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 8d56ecd9003..5f030f29fa7 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -177,8 +177,9 @@ class View extends \PHPUnit_Framework_TestCase {
function testCacheIncompleteFolder() {
$storage1 = $this->getTestStorage(false);
- \OC\Files\Filesystem::mount($storage1, array(), '/');
- $rootView = new \OC\Files\View('');
+ \OC\Files\Filesystem::clearMounts();
+ \OC\Files\Filesystem::mount($storage1, array(), '/incomplete');
+ $rootView = new \OC\Files\View('/incomplete');
$entries = $rootView->getDirectoryContent('/');
$this->assertEquals(3, count($entries));