From 6c974a7da593f5eccf0bbc2fed34c1f255d618f2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 29 Jul 2026 20:45:50 +0000 Subject: [PATCH] test(locale): satisfy Rector NarrowUnusedSetUpDefinedProperty Co-authored-by: Chirag Aggarwal --- tests/unit/Locale/FallbackTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/unit/Locale/FallbackTest.php b/tests/unit/Locale/FallbackTest.php index a4d1509f8d..92a5c59f6b 100644 --- a/tests/unit/Locale/FallbackTest.php +++ b/tests/unit/Locale/FallbackTest.php @@ -9,14 +9,12 @@ use Utopia\Locale\Locale; final class FallbackTest extends TestCase { - private string $translationsDir; - protected function setUp(): void { - $this->translationsDir = __DIR__ . '/../../../app/config/locale/translations'; + $translationsDir = __DIR__ . '/../../../app/config/locale/translations'; Locale::$exceptions = false; - Locale::setLanguageFromJSON('en', $this->translationsDir . '/en.json'); - Locale::setLanguageFromJSON('fr', $this->translationsDir . '/fr.json'); + Locale::setLanguageFromJSON('en', $translationsDir . '/en.json'); + Locale::setLanguageFromJSON('fr', $translationsDir . '/fr.json'); } public function testIncompleteLocaleFallsBackToEnglishForMissingEmailKeys(): void