aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/storage')
-rw-r--r--tests/lib/files/storage/homestoragequota.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/files/storage/homestoragequota.php b/tests/lib/files/storage/homestoragequota.php
index 49e8f499efd..bee05438c80 100644
--- a/tests/lib/files/storage/homestoragequota.php
+++ b/tests/lib/files/storage/homestoragequota.php
@@ -32,7 +32,7 @@ class HomeStorageQuota extends \Test\TestCase {
*/
function testHomeStorageWrapperWithoutQuota() {
$user1 = $this->getUniqueID();
- \OC_User::createUser($user1, 'test');
+ \OC::$server->getUserManager()->createUser($user1, 'test');
\OC::$server->getConfig()->setUserValue($user1, 'files', 'quota', 'none');
\OC_User::setUserId($user1);
@@ -54,7 +54,7 @@ class HomeStorageQuota extends \Test\TestCase {
*/
function testHomeStorageWrapperWithQuota() {
$user1 = $this->getUniqueID();
- \OC_User::createUser($user1, 'test');
+ \OC::$server->getUserManager()->createUser($user1, 'test');
\OC::$server->getConfig()->setUserValue($user1, 'files', 'quota', '1024');
\OC_User::setUserId($user1);