aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/cache/updaterlegacy.php
diff options
context:
space:
mode:
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();