aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/cache/updater.php
diff options
context:
space:
mode:
authoricewind1991 <icewind1991@gmail.com>2013-04-25 08:07:07 -0700
committericewind1991 <icewind1991@gmail.com>2013-04-25 08:07:07 -0700
commit80e91e1ac6f8c3c3daa0b8e65ab038ebb57b0794 (patch)
treec59574e97378dc2741ee5ce6498ce5ef0f3269df /tests/lib/files/cache/updater.php
parent632221bed0a33d2b8d6c1eb7cc285f715967fd26 (diff)
parentcea56df59ec4530d78e66fd341738d77e0ab1745 (diff)
downloadnextcloud-server-80e91e1ac6f8c3c3daa0b8e65ab038ebb57b0794.tar.gz
nextcloud-server-80e91e1ac6f8c3c3daa0b8e65ab038ebb57b0794.zip
Merge pull request #3132 from owncloud/mount-setupfs
Make sure the filesystem is initialized when searching for mounts
Diffstat (limited to 'tests/lib/files/cache/updater.php')
-rw-r--r--tests/lib/files/cache/updater.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/files/cache/updater.php b/tests/lib/files/cache/updater.php
index aaf932c97fe..dad3cd7e650 100644
--- a/tests/lib/files/cache/updater.php
+++ b/tests/lib/files/cache/updater.php
@@ -42,14 +42,11 @@ class Updater extends \PHPUnit_Framework_TestCase {
$this->scanner->scan('');
$this->cache = $this->storage->getCache();
+ \OC\Files\Filesystem::tearDown();
if (!self::$user) {
- if (!\OC\Files\Filesystem::getView()) {
- self::$user = uniqid();
- \OC\Files\Filesystem::init(self::$user, '/' . self::$user . '/files');
- } else {
- self::$user = \OC_User::getUser();
- }
+ self::$user = uniqid();
}
+ \OC\Files\Filesystem::init(self::$user, '/' . self::$user . '/files');
Filesystem::clearMounts();
Filesystem::mount($this->storage, array(), '/' . self::$user . '/files');