aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-06-07 11:01:38 +0200
committerGitHub <noreply@github.com>2024-06-07 11:01:38 +0200
commit6c27d57e0db3c2bfa7b9dd71e8aad950db392074 (patch)
treea9666de85f3ffb260243a76c5a087a1cb4bbb407 /tests
parent372dfcbfee7994c3ba28905a1117265928ae310a (diff)
parentf1612d4eb9f90487e52e245ba4b03d1e882a39e6 (diff)
downloadnextcloud-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.php15
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);