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 {
}
private function initFS() {
if(\OC\Files\Filesystem::getView()){
$user = \OC_User::getUser();
}else{
// create a new user with his own filesystem view
// this gets called by each test in this test class
$user=uniqid();
\OC_User::setUserId($user);
\OC\Files\Filesystem::init($user, '/'.$user.'/files');
}
\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