diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-04-04 00:20:35 -0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-17 15:12:22 +0000 |
commit | 9040bcb3b9294d7dd04afb905b93636b9accbd04 (patch) | |
tree | b4fef7460bd676c7b79488dd25eed96c067bd3bb /tests | |
parent | 643be3c81bfd576f76211beed6b96e273646b23f (diff) | |
download | nextcloud-server-9040bcb3b9294d7dd04afb905b93636b9accbd04.tar.gz nextcloud-server-9040bcb3b9294d7dd04afb905b93636b9accbd04.zip |
fix(appconfig): format app values
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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); |