aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-24 12:44:50 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2025-02-24 17:48:34 +0100
commit34139987d609386c3351c46fd60b0f932795b6df (patch)
tree762348727684498a9c3364a93e3cecc681ec4e8c /apps/files_sharing/tests
parent03ba09241926801733113d8225d64909712e2e6f (diff)
downloadnextcloud-server-34139987d609386c3351c46fd60b0f932795b6df.tar.gz
nextcloud-server-34139987d609386c3351c46fd60b0f932795b6df.zip
fix: Replace OC_App calls by IAppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index 70e644f9207..efdbeebdf3f 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -59,8 +59,9 @@ class UpdaterTest extends TestCase {
* that the mount point doesn't end up at the trash bin
*/
public function testDeleteParentFolder(): void {
- $status = Server::get(IAppManager::class)->isEnabledForUser('files_trashbin');
- (new \OC_App())->enable('files_trashbin');
+ $appManager = Server::get(IAppManager::class);
+ $status = $appManager->isEnabledForUser('files_trashbin');
+ $appManager->enableApp('files_trashbin');
// register trashbin hooks
$trashbinApp = new Application();
@@ -116,7 +117,7 @@ class UpdaterTest extends TestCase {
$rootView->deleteAll('files_trashin');
if ($status === false) {
- Server::get(IAppManager::class)->disableApp('files_trashbin');
+ $appManager->disableApp('files_trashbin');
}
Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');