summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/cache/file.php')
-rw-r--r--tests/lib/cache/file.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/cache/file.php b/tests/lib/cache/file.php
index c33c513fcff..be2a2a72778 100644
--- a/tests/lib/cache/file.php
+++ b/tests/lib/cache/file.php
@@ -22,7 +22,7 @@
class Test_Cache_File extends Test_Cache {
function skip() {
- $this->skipUnless(OC_User::isLoggedIn());
+ //$this->skipUnless(OC_User::isLoggedIn());
}
public function setUp(){
@@ -39,6 +39,13 @@ class Test_Cache_File extends Test_Cache {
OC_Filesystem::clearMounts();
OC_Filesystem::mount('OC_Filestorage_Temporary',array(),'/');
+ //login
+ if (OC_User::userExists('test'))
+ OC_User::deleteUser('test');
+ OC_User::createUser('test', 'testtesttest');
+
+ OC_User::login('test', 'testtesttest');
+
//set up the users dir
$rootView=new OC_FilesystemView('');
$rootView->mkdir('/'.OC_User::getUser());