summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-29 10:12:53 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-29 10:12:53 +0100
commit5cf8c84a8ac9b6d054445c8e5794ac7a3589b376 (patch)
tree452137e598e3665b9cec3d67d53511c3a1de6886 /tests
parent1de813f3005a1dffd34ea733d288ec51b58de557 (diff)
downloadnextcloud-server-5cf8c84a8ac9b6d054445c8e5794ac7a3589b376.tar.gz
nextcloud-server-5cf8c84a8ac9b6d054445c8e5794ac7a3589b376.zip
tests should work if I explicitely log-in as a user
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/cache/updater.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/files/cache/updater.php b/tests/lib/files/cache/updater.php
index 198d601b1bb..34760769a75 100644
--- a/tests/lib/files/cache/updater.php
+++ b/tests/lib/files/cache/updater.php
@@ -46,6 +46,10 @@ class Updater extends \PHPUnit_Framework_TestCase {
if (!self::$user) {
self::$user = uniqid();
}
+
+ \OC_User::createUser(self::$user, 'password');
+ \OC_User::setUserId(self::$user);
+
\OC\Files\Filesystem::init(self::$user, '/' . self::$user . '/files');
Filesystem::clearMounts();
@@ -63,6 +67,7 @@ class Updater extends \PHPUnit_Framework_TestCase {
if ($this->cache) {
$this->cache->clear();
}
+ \OC_User::deleteUser(self::$user);
Filesystem::tearDown();
}