diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 15:10:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 16:18:40 +0100 |
commit | 835911bce5cf8da9ce6d4021f0836b11d6b97d31 (patch) | |
tree | a2bdcfcb696b9142643bb7a9f5b93b68944c1191 /apps/files_sharing | |
parent | 7e44ea5da068bae204715e545b95c4852ad6283c (diff) | |
download | nextcloud-server-835911bce5cf8da9ce6d4021f0836b11d6b97d31.tar.gz nextcloud-server-835911bce5cf8da9ce6d4021f0836b11d6b97d31.zip |
Removed deprecated private OC_User::createUser
All function calls are replaced with the recommended (which was already
the body of the function).
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/controller/sharecontroller.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/testcase.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php index 168488f5613..d165151b87f 100644 --- a/apps/files_sharing/tests/controller/sharecontroller.php +++ b/apps/files_sharing/tests/controller/sharecontroller.php @@ -78,7 +78,7 @@ class ShareControllerTest extends \Test\TestCase { // Create a dummy user $this->user = \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate(12, ISecureRandom::CHAR_LOWER); - \OC_User::createUser($this->user, $this->user); + \OC::$server->getUserManager()->createUser($this->user, $this->user); \OC_Util::tearDownFS(); $this->loginAsUser($this->user); diff --git a/apps/files_sharing/tests/testcase.php b/apps/files_sharing/tests/testcase.php index a74ee83c25b..cc82fc3d949 100644 --- a/apps/files_sharing/tests/testcase.php +++ b/apps/files_sharing/tests/testcase.php @@ -149,7 +149,7 @@ abstract class TestCase extends \Test\TestCase { } if ($create) { - \OC_User::createUser($user, $password); + \OC::$server->getUserManager()->createUser($user, $password); \OC_Group::createGroup('group'); \OC_Group::addToGroup($user, 'group'); } |