mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix failing preview test on master
This commit is contained in:
parent
4c964cbbbe
commit
b65b7965ae
1 changed files with 5 additions and 7 deletions
|
|
@ -134,13 +134,11 @@ class Preview extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
private function initFS() {
|
||||
if(\OC\Files\Filesystem::getView()){
|
||||
$user = \OC_User::getUser();
|
||||
}else{
|
||||
$user=uniqid();
|
||||
\OC_User::setUserId($user);
|
||||
\OC\Files\Filesystem::init($user, '/'.$user.'/files');
|
||||
}
|
||||
// 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(), '/');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue