From 3261b7bafbb8e7cd0003c0cfbf26e4d4a4b65def Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:00:17 +0200 Subject: i18n improved: dotted path -> dot-notation (#6317) * dotted path -> dot-notation * dot-notation -> dot notation * rename json_dotpath => json_dotnotation * Update app/i18n/fr/sub.php Co-authored-by: Alexandre Alapetite * Update app/i18n/fr/sub.php Co-authored-by: Alexandre Alapetite * Update app/i18n/fr/sub.php Co-authored-by: Alexandre Alapetite * Update app/i18n/nl/sub.php Co-authored-by: Frans de Jonge * Update app/i18n/nl/sub.php Co-authored-by: Frans de Jonge * Update app/i18n/nl/sub.php Co-authored-by: Frans de Jonge * Update app/i18n/nl/sub.php Co-authored-by: Frans de Jonge * Rename corresponding class --------- Co-authored-by: Alexandre Alapetite Co-authored-by: Frans de Jonge --- tests/app/Utils/dotNotationUtilTest.php | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/app/Utils/dotNotationUtilTest.php (limited to 'tests/app/Utils/dotNotationUtilTest.php') diff --git a/tests/app/Utils/dotNotationUtilTest.php b/tests/app/Utils/dotNotationUtilTest.php new file mode 100644 index 000000000..a04ddba4f --- /dev/null +++ b/tests/app/Utils/dotNotationUtilTest.php @@ -0,0 +1,44 @@ +,string,string}> + */ + public function provideJsonDots(): Traversable { + $json = << $array + */ + public function testJsonDots(array $array, string $key, string $expected): void { + $value = FreshRSS_dotNotation_Util::get($array, $key); + self::assertEquals($expected, $value); + } +} -- cgit v1.2.3