Skip to content
Snippets Groups Projects
Commit 7ba80391 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

Merge pull request #5625 from owncloud/fix-test-master

fix failing preview test on master
parents fdaac995 b65b7965
No related branches found
No related tags found
No related merge requests found
...@@ -134,13 +134,11 @@ class Preview extends \PHPUnit_Framework_TestCase { ...@@ -134,13 +134,11 @@ class Preview extends \PHPUnit_Framework_TestCase {
} }
private function initFS() { private function initFS() {
if(\OC\Files\Filesystem::getView()){ // create a new user with his own filesystem view
$user = \OC_User::getUser(); // this gets called by each test in this test class
}else{
$user=uniqid(); $user=uniqid();
\OC_User::setUserId($user); \OC_User::setUserId($user);
\OC\Files\Filesystem::init($user, '/'.$user.'/files'); \OC\Files\Filesystem::init($user, '/'.$user.'/files');
}
\OC\Files\Filesystem::mount('OC\Files\Storage\Temporary', array(), '/'); \OC\Files\Filesystem::mount('OC\Files\Storage\Temporary', array(), '/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment