aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-04-10 11:29:21 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-04-10 11:29:21 +0200
commit0cf4f3cc719183fc1f273cd3d5e7689c1009bf3c (patch)
tree4e0dbc16de5b552ca5dc021c5f522650848b3f20 /apps/files_trashbin/tests
parentddd7d4ed13a4b394d3b205dc8388a4ec7268fdf3 (diff)
downloadnextcloud-server-fix/cleanup-user-backends.tar.gz
nextcloud-server-fix/cleanup-user-backends.zip
fix: Replace all usages of OC_User backend method calls by IUserManagerfix/cleanup-user-backends
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r--apps/files_trashbin/tests/TrashbinTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php
index f6593a3b2c5..d16e90f74e9 100644
--- a/apps/files_trashbin/tests/TrashbinTest.php
+++ b/apps/files_trashbin/tests/TrashbinTest.php
@@ -58,8 +58,8 @@ class TrashbinTest extends \Test\TestCase {
self::$trashBinStatus = $appManager->isEnabledForUser('files_trashbin');
// reset backend
- \OC_User::clearBackends();
- \OC_User::useBackend('database');
+ Server::get(IUserManager::class)->clearBackends();
+ Server::get(IUserManager::class)->registerBackend(new \OC\User\Database());
// clear share hooks
\OC_Hook::clear('OCP\\Share');