aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-10 11:35:38 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 10:19:20 +0100
commitf758f565d4da004ebef97350365a066eee5267fe (patch)
tree5dcea3814c85d70a76cd9ee0575a4b41162d79d3 /apps/dav
parenta3685551f7188e7d2d0c7532b821ec2c3bd40583 (diff)
downloadnextcloud-server-fix/clarify-app-manager-methods.tar.gz
nextcloud-server-fix/clarify-app-manager-methods.zip
fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/AppInfo/PluginManager.php2
-rw-r--r--apps/dav/tests/unit/AppInfo/PluginManagerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/AppInfo/PluginManager.php b/apps/dav/lib/AppInfo/PluginManager.php
index fc1cc18a09d..428547e3f61 100644
--- a/apps/dav/lib/AppInfo/PluginManager.php
+++ b/apps/dav/lib/AppInfo/PluginManager.php
@@ -119,7 +119,7 @@ class PluginManager {
$this->calendarPlugins[] = $this->container->get(AppCalendarPlugin::class);
- foreach ($this->appManager->getInstalledApps() as $app) {
+ foreach ($this->appManager->getEnabledApps() as $app) {
// load plugins and collections from info.xml
$info = $this->appManager->getAppInfo($app);
if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
diff --git a/apps/dav/tests/unit/AppInfo/PluginManagerTest.php b/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
index 8211cdfc02c..7a60888a838 100644
--- a/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
+++ b/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
@@ -24,7 +24,7 @@ class PluginManagerTest extends TestCase {
$server = $this->createMock(ServerContainer::class);
$appManager = $this->createMock(AppManager::class);
- $appManager->method('getInstalledApps')
+ $appManager->method('getEnabledApps')
->willReturn(['adavapp', 'adavapp2']);
$appInfo1 = [