Skip to content
Snippets Groups Projects
Commit c88c54bb authored by Robin Appelman's avatar Robin Appelman
Browse files

make sure we can do our tests again

parent 4b9fbf46
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,11 @@ class OC_Cache_File{
}
if(OC_User::isLoggedIn()) {
$subdir = 'cache';
$view = new OC_FilesystemView('/'.OC_User::getUser());
$view = new \OC\Files\View('/'.OC_User::getUser());
if(!$view->file_exists($subdir)) {
$view->mkdir($subdir);
}
$this->storage = new OC_FilesystemView('/'.OC_User::getUser().'/'.$subdir);
$this->storage = new \OC\Files\View('/'.OC_User::getUser().'/'.$subdir);
return $this->storage;
}else{
OC_Log::write('core', 'Can\'t get cache storage, user not logged in', OC_Log::ERROR);
......
......@@ -51,7 +51,7 @@ class Test_Cache_File extends Test_Cache {
OC_User::setUserId('test');
//set up the users dir
$rootView=new OC_FilesystemView('');
$rootView=new \OC\Files\View('');
$rootView->mkdir('/test');
$this->instance=new OC_Cache_File();
......
......@@ -84,7 +84,7 @@ class Test_Filesystem extends UnitTestCase {
OC_Filesystem::mount('OC\Files\Storage\Temporary', array(), '/');
$rootView=new OC_FilesystemView('');
$rootView=new \OC\Files\View('');
$rootView->mkdir('/'.$user);
$rootView->mkdir('/'.$user.'/files');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment