aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/tests/testcase.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/testcase.php b/apps/files_sharing/tests/testcase.php
index a098feb550d..70cd45a8185 100644
--- a/apps/files_sharing/tests/testcase.php
+++ b/apps/files_sharing/tests/testcase.php
@@ -65,9 +65,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
// create users
- self::loginHelper(self::TEST_FILES_SHARING_API_USER1, true);
- self::loginHelper(self::TEST_FILES_SHARING_API_USER2, true);
- self::loginHelper(self::TEST_FILES_SHARING_API_USER3, true);
+ $backend = new \OC_User_Dummy();
+ \OC_User::useBackend($backend);
+ $backend->createUser(self::TEST_FILES_SHARING_API_USER1, self::TEST_FILES_SHARING_API_USER1);
+ $backend->createUser(self::TEST_FILES_SHARING_API_USER2, self::TEST_FILES_SHARING_API_USER2);
+ $backend->createUser(self::TEST_FILES_SHARING_API_USER3, self::TEST_FILES_SHARING_API_USER3);
// create group
\OC_Group::createGroup(self::TEST_FILES_SHARING_API_GROUP1);