summaryrefslogtreecommitdiffstats
path: root/tests/lib/files/cache/updaterlegacy.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 15:59:23 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 16:18:40 +0100
commit1f715289bf1cafb7e51dce7a4ab478dd3db5088e (patch)
tree81d3623bff851e08b205cfc3bbefc5c886ef530e /tests/lib/files/cache/updaterlegacy.php
parent9201b9713ed21566f90628d41c49056ca5314096 (diff)
downloadnextcloud-server-1f715289bf1cafb7e51dce7a4ab478dd3db5088e.tar.gz
nextcloud-server-1f715289bf1cafb7e51dce7a4ab478dd3db5088e.zip
Removed deprecated function OC_User::deleteUser
Replaced with proper OCP calls
Diffstat (limited to 'tests/lib/files/cache/updaterlegacy.php')
-rw-r--r--tests/lib/files/cache/updaterlegacy.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/files/cache/updaterlegacy.php b/tests/lib/files/cache/updaterlegacy.php
index ca59850eb0b..09688afd465 100644
--- a/tests/lib/files/cache/updaterlegacy.php
+++ b/tests/lib/files/cache/updaterlegacy.php
@@ -72,7 +72,10 @@ class UpdaterLegacy extends \Test\TestCase {
if ($this->cache) {
$this->cache->clear();
}
- $result = \OC_User::deleteUser(self::$user);
+
+ $result = false;
+ $user = \OC::$server->getUserManager()->get(self::$user);
+ if ($user !== null) { $result = $user->delete(); }
$this->assertTrue($result);
$this->logout();