- giving the user a new id for each test run in order to prevent reuse of e.g. permissions data in the database
- setting the current user id because \OC\FilesView relies on \OC_User::getUser()
This commit is contained in:
parent
58ed78aa9e
commit
6eeb4d165c
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ class IntegrationTests extends \PHPUnit_Framework_TestCase {
|
|||
\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
|
||||
\OC_Hook::connect('OC_Filesystem', 'post_touch', '\OC\Files\Cache\Updater', 'touchHook');
|
||||
|
||||
$user = new User('', new \OC_User_Dummy);
|
||||
$user = new User(uniqid('user'), new \OC_User_Dummy);
|
||||
\OC_User::setUserId($user->getUID());
|
||||
$this->view = new View();
|
||||
$this->root = new Root($manager, $this->view, $user);
|
||||
$storage = new Temporary(array());
|
||||
|
|
Loading…
Reference in a new issue