summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-07-23 22:07:42 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-07-23 22:07:42 +0200
commitab7a2d43e810da66087f3abf4a87afff219a33c0 (patch)
tree01a782fd0bbc13f25bcbf25d223d668fc0893bff
parent21631be2ff0fc1ce9181d619cfd793b5482d18b7 (diff)
downloadnextcloud-server-ab7a2d43e810da66087f3abf4a87afff219a33c0.tar.gz
nextcloud-server-ab7a2d43e810da66087f3abf4a87afff219a33c0.zip
create a user for Test_Cache_File to allow unit tesing within ci
-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());