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