aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-04-17 17:11:36 +0200
committerGitHub <noreply@github.com>2024-04-17 17:11:36 +0200
commit3aa9c53a87cc1e69fb4285af265b2a3bba429614 (patch)
tree2666012026b470def0126305b5739ea397e27e44 /tests
parentf865f447673cb452278652992abcde17276569ee (diff)
parent97e59b12a13fcaf51280818c176a2631ebc1d3a4 (diff)
downloadnextcloud-server-3aa9c53a87cc1e69fb4285af265b2a3bba429614.tar.gz
nextcloud-server-3aa9c53a87cc1e69fb4285af265b2a3bba429614.zip
Merge pull request #44644 from nextcloud/enh/noid/returns-formated-app-values
fix(appconfig): format app values
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppConfigTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php
index 86bd339bc7e..5bbc3f56791 100644
--- a/tests/lib/AppConfigTest.php
+++ b/tests/lib/AppConfigTest.php
@@ -386,6 +386,21 @@ class AppConfigTest extends TestCase {
$config->isLazy('unknown-app', 'inexistant-key');
}
+ public function testGetAllValues(): void {
+ $config = $this->generateAppConfig();
+ $this->assertEquals(
+ [
+ 'array' => ['test' => 1],
+ 'bool' => true,
+ 'float' => 3.14,
+ 'int' => 42,
+ 'mixed' => 'mix',
+ 'string' => 'value',
+ ],
+ $config->getAllValues('typed')
+ );
+ }
+
public function testGetAllValuesWithEmptyApp(): void {
$config = $this->generateAppConfig();
$this->expectException(InvalidArgumentException::class);