diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/base.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/base.php b/apps/files_sharing/tests/base.php index 738ba3493ba..84de6006fdb 100644 --- a/apps/files_sharing/tests/base.php +++ b/apps/files_sharing/tests/base.php @@ -126,9 +126,9 @@ abstract class Test_Files_Sharing_Base extends \PHPUnit_Framework_TestCase { } \OC_Util::tearDownFS(); - \OC_User::setUserId(''); + \OC::$server->getUserSession()->setUser(null); \OC\Files\Filesystem::tearDown(); - \OC_User::setUserId($user); + \OC::$server->getUserSession()->login($user, $password); \OC_Util::setupFS($user); } |