diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-06-07 11:01:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 11:01:38 +0200 |
commit | 6c27d57e0db3c2bfa7b9dd71e8aad950db392074 (patch) | |
tree | a9666de85f3ffb260243a76c5a087a1cb4bbb407 /tests | |
parent | 372dfcbfee7994c3ba28905a1117265928ae310a (diff) | |
parent | f1612d4eb9f90487e52e245ba4b03d1e882a39e6 (diff) | |
download | nextcloud-server-6c27d57e0db3c2bfa7b9dd71e8aad950db392074.tar.gz nextcloud-server-6c27d57e0db3c2bfa7b9dd71e8aad950db392074.zip |
Merge pull request #44894 from nextcloud/backport/44644/stable29
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 3efeed5755d..d25a25c8e66 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); |