aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-10 11:25:50 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 10:19:19 +0100
commita3685551f7188e7d2d0c7532b821ec2c3bd40583 (patch)
tree43aa4f911e53a66529152cb2ac44e017f0ef9f31 /tests/lib/App
parentcffd2c8d09e9e9198aed4754478c18f4c8b7c201 (diff)
downloadnextcloud-server-a3685551f7188e7d2d0c7532b821ec2c3bd40583.tar.gz
nextcloud-server-a3685551f7188e7d2d0c7532b821ec2c3bd40583.zip
fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUser
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/AppManagerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php
index fd7a065d5b3..a9cd4f708a5 100644
--- a/tests/lib/App/AppManagerTest.php
+++ b/tests/lib/App/AppManagerTest.php
@@ -426,17 +426,17 @@ class AppManagerTest extends TestCase {
public function testIsInstalledEnabled(): void {
$this->appConfig->setValue('test', 'enabled', 'yes');
- $this->assertTrue($this->manager->isInstalled('test'));
+ $this->assertTrue($this->manager->isEnabledForAnyone('test'));
}
public function testIsInstalledDisabled(): void {
$this->appConfig->setValue('test', 'enabled', 'no');
- $this->assertFalse($this->manager->isInstalled('test'));
+ $this->assertFalse($this->manager->isEnabledForAnyone('test'));
}
public function testIsInstalledEnabledForGroups(): void {
$this->appConfig->setValue('test', 'enabled', '["foo"]');
- $this->assertTrue($this->manager->isInstalled('test'));
+ $this->assertTrue($this->manager->isEnabledForAnyone('test'));
}
private function newUser($uid) {