diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-11-04 15:15:58 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-11-06 18:31:40 +0100 |
commit | 9c79c2fa17be40a6c7b8212c6e7a89c2f6470d04 (patch) | |
tree | 23404998bf14faddf3862b9fb6e4120f05ecdfd0 /apps/files_sharing | |
parent | f73d65303601574e1bcc68e0aa8ae8ef4853a118 (diff) | |
download | nextcloud-server-9c79c2fa17be40a6c7b8212c6e7a89c2f6470d04.tar.gz nextcloud-server-9c79c2fa17be40a6c7b8212c6e7a89c2f6470d04.zip |
Dont make real users in tests
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/testcase.php | 8 |
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); |