diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-05 17:42:14 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-05 17:42:14 +0200 |
commit | 8d5165e8dc40289b5d523523c4140f780b2fe293 (patch) | |
tree | b4d15f2bc67e16c94d7cdfdb893a773b415d2738 /tests/lib/GlobalScale | |
parent | 426c0341ffff262f58d1b7f031de4f0c53c8bec5 (diff) | |
download | nextcloud-server-8d5165e8dc40289b5d523523c4140f780b2fe293.tar.gz nextcloud-server-8d5165e8dc40289b5d523523c4140f780b2fe293.zip |
Adapt tests to config value typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/GlobalScale')
-rw-r--r-- | tests/lib/GlobalScale/ConfigTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/GlobalScale/ConfigTest.php b/tests/lib/GlobalScale/ConfigTest.php index e67cb392d64..826a57a2b30 100644 --- a/tests/lib/GlobalScale/ConfigTest.php +++ b/tests/lib/GlobalScale/ConfigTest.php @@ -52,7 +52,7 @@ class ConfigTest extends TestCase { public function testIsGlobalScaleEnabled() { $gsConfig = $this->getInstance(); - $this->config->expects($this->once())->method('getSystemValue') + $this->config->expects($this->once())->method('getSystemValueBool') ->with('gs.enabled', false)->willReturn(true); $result = $gsConfig->isGlobalScaleEnabled(); @@ -73,7 +73,7 @@ class ConfigTest extends TestCase { $gsConfig->expects($this->any())->method('isGlobalScaleEnabled')->willReturn($gsEnabled); - $this->config->expects($this->any())->method('getSystemValue') + $this->config->expects($this->any())->method('getSystemValueString') ->with('gs.federation', 'internal')->willReturn($gsFederation); $this->assertSame($expected, $gsConfig->onlyInternalFederation()); |