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 +++++++++++++++++++++++++++++++++ tests/app/Utils/dotpathUtilTest.php | 44 --------------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 tests/app/Utils/dotNotationUtilTest.php delete mode 100644 tests/app/Utils/dotpathUtilTest.php (limited to 'tests/app') 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); + } +} diff --git a/tests/app/Utils/dotpathUtilTest.php b/tests/app/Utils/dotpathUtilTest.php deleted file mode 100644 index eb1a1d486..000000000 --- a/tests/app/Utils/dotpathUtilTest.php +++ /dev/null @@ -1,44 +0,0 @@ -,string,string}> - */ - public function provideJsonDots(): Traversable { - $json = << $array - */ - public function testJsonDots(array $array, string $key, string $expected): void { - $value = FreshRSS_dotpath_Util::get($array, $key); - self::assertEquals($expected, $value); - } -} -- cgit v1.2.3