diff --git a/apps/files_versions/tests/versions.php b/apps/files_versions/tests/versions.php index 436863b28dc6..3a046cc11379 100644 --- a/apps/files_versions/tests/versions.php +++ b/apps/files_versions/tests/versions.php @@ -47,9 +47,10 @@ public static function setUpBeforeClass() { \OCA\Files_Versions\Hooks::connectHooks(); \OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup'); - // create test user - self::loginHelper(self::TEST_VERSIONS_USER2, true); - self::loginHelper(self::TEST_VERSIONS_USER, true); + $backend = new OC_User_Dummy(); + \OC_User::useBackend($backend); + $backend->createUser(self::TEST_VERSIONS_USER, self::TEST_VERSIONS_USER); + $backend->createUser(self::TEST_VERSIONS_USER2, self::TEST_VERSIONS_USER2); } public static function tearDownAfterClass() {