summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/UpdaterTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-10-23 23:31:17 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-10-23 23:31:17 +0200
commitf884e762bcf3e1737f1cdd5a4453ca0664087b61 (patch)
treeb0f2ac05efef64c98aac9b21588cc32812cc7acc /apps/files_sharing/tests/UpdaterTest.php
parentdb1096bcfdf2336ccf6aefb70dd902a63ed615db (diff)
downloadnextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.tar.gz
nextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.zip
Use appmanager instead of OC_App for check for enabled app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/tests/UpdaterTest.php')
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index 63000152b5a..c01365a500a 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -70,7 +70,7 @@ class UpdaterTest extends TestCase {
* that the mount point doesn't end up at the trash bin
*/
public function testDeleteParentFolder() {
- $status = \OC_App::isEnabled('files_trashbin');
+ $status = \OC::$server->getAppManager()->isEnabledForUser('files_trashbin');
(new \OC_App())->enable('files_trashbin');