aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
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 /tests/lib
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 'tests/lib')
-rw-r--r--tests/lib/App/AppManagerTest.php4
-rw-r--r--tests/lib/NavigationManagerTest.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php
index a9cd4f708a5..19039366aa8 100644
--- a/tests/lib/App/AppManagerTest.php
+++ b/tests/lib/App/AppManagerTest.php
@@ -539,7 +539,7 @@ class AppManagerTest extends TestCase {
$this->assertTrue($this->manager->isEnabledForUser('test'));
}
- public function testGetInstalledApps(): void {
+ public function testGetEnabledApps(): void {
$this->appConfig->setValue('test1', 'enabled', 'yes');
$this->appConfig->setValue('test2', 'enabled', 'no');
$this->appConfig->setValue('test3', 'enabled', '["foo"]');
@@ -560,7 +560,7 @@ class AppManagerTest extends TestCase {
'viewer',
'workflowengine',
];
- $this->assertEquals($apps, $this->manager->getInstalledApps());
+ $this->assertEquals($apps, $this->manager->getEnabledApps());
}
public function testGetAppsForUser(): void {
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php
index d9db928e8a1..91da970f3b9 100644
--- a/tests/lib/NavigationManagerTest.php
+++ b/tests/lib/NavigationManagerTest.php
@@ -718,7 +718,7 @@ class NavigationManagerTest extends TestCase {
'id' => 'settings',
]);
- $this->appManager->method('getInstalledApps')->willReturn([]);
+ $this->appManager->method('getEnabledApps')->willReturn([]);
$user = $this->createMock(IUser::class);
$user->method('getUID')->willReturn('user1');
@@ -743,7 +743,7 @@ class NavigationManagerTest extends TestCase {
}
public function testDefaultEntryUpdated(): void {
- $this->appManager->method('getInstalledApps')->willReturn([]);
+ $this->appManager->method('getEnabledApps')->willReturn([]);
$user = $this->createMock(IUser::class);
$user->method('getUID')->willReturn('user1');