Dont make real users in tests
This commit is contained in:
parent
f73d653036
commit
9c79c2fa17
|
@ -65,9 +65,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
||||||
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
|
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
|
||||||
|
|
||||||
// create users
|
// create users
|
||||||
self::loginHelper(self::TEST_FILES_SHARING_API_USER1, true);
|
$backend = new \OC_User_Dummy();
|
||||||
self::loginHelper(self::TEST_FILES_SHARING_API_USER2, true);
|
\OC_User::useBackend($backend);
|
||||||
self::loginHelper(self::TEST_FILES_SHARING_API_USER3, true);
|
$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
|
// create group
|
||||||
\OC_Group::createGroup(self::TEST_FILES_SHARING_API_GROUP1);
|
\OC_Group::createGroup(self::TEST_FILES_SHARING_API_GROUP1);
|
||||||
|
|
Loading…
Reference in New Issue