diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-17 17:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 17:11:36 +0200 |
commit | 3aa9c53a87cc1e69fb4285af265b2a3bba429614 (patch) | |
tree | 2666012026b470def0126305b5739ea397e27e44 /tests | |
parent | f865f447673cb452278652992abcde17276569ee (diff) | |
parent | 97e59b12a13fcaf51280818c176a2631ebc1d3a4 (diff) | |
download | nextcloud-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.php | 15 |
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); |