diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-16 15:17:36 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-24 12:33:54 +0200 |
commit | 16cfca6a5fb3db897246e6ac9ccb7420cf256240 (patch) | |
tree | adaf149c6c3ce621c82ae18bf00dbaf79908f8fd /tests | |
parent | 4438c7de1d0a66bb2c4eaff3bd718e5c946caa6f (diff) | |
download | nextcloud-server-16cfca6a5fb3db897246e6ac9ccb7420cf256240.tar.gz nextcloud-server-16cfca6a5fb3db897246e6ac9ccb7420cf256240.zip |
Better reuse of cache data for getFolderContents
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/view.php | 5 |
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)); |