summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-04-25 16:56:48 +0200
committerRobin Appelman <icewind@owncloud.com>2013-04-25 16:56:48 +0200
commitcea56df59ec4530d78e66fd341738d77e0ab1745 (patch)
tree301bf95c3a7c7417091e61d1efb2afdd49e15ed6 /tests
parent31d7f4df2a8870c288ed73a3a6c501d4b15365ea (diff)
downloadnextcloud-server-cea56df59ec4530d78e66fd341738d77e0ab1745.tar.gz
nextcloud-server-cea56df59ec4530d78e66fd341738d77e0ab1745.zip
Have the filecache updater testcase clean the filesystem properly
Diffstat (limited to 'tests')
-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');