aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/utils
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-03 11:34:48 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-03 11:55:18 +0200
commitf297bf14f9c91cc6d3e4a6df340b4bc24d85c2a7 (patch)
tree88f08b370146e4b9055b5fc801dc8d6da71ca49d /tests/lib/files/utils
parent6689d67a5bc502be3a06537259af197037ec15c4 (diff)
downloadnextcloud-server-f297bf14f9c91cc6d3e4a6df340b4bc24d85c2a7.tar.gz
nextcloud-server-f297bf14f9c91cc6d3e4a6df340b4bc24d85c2a7.zip
Fix unit tests
Diffstat (limited to 'tests/lib/files/utils')
-rw-r--r--tests/lib/files/utils/scanner.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/files/utils/scanner.php b/tests/lib/files/utils/scanner.php
index 4610e2b4d46..267fc63302d 100644
--- a/tests/lib/files/utils/scanner.php
+++ b/tests/lib/files/utils/scanner.php
@@ -42,6 +42,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
public function testReuseExistingRoot() {
$storage = new Temporary(array());
$mount = new Mount($storage, '');
+ Filesystem::getMountManager()->addMount($mount);
$cache = $storage->getCache();
$storage->mkdir('folder');
@@ -63,6 +64,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
public function testReuseExistingFile() {
$storage = new Temporary(array());
$mount = new Mount($storage, '');
+ Filesystem::getMountManager()->addMount($mount);
$cache = $storage->getCache();
$storage->mkdir('folder');