From c6a85dd23eaad334b14f330c8b04809ec7fee367 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 4 Nov 2014 12:56:41 +0100 Subject: [PATCH] Dont create users in the database --- apps/files_versions/tests/versions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() {