test(locale): satisfy Rector NarrowUnusedSetUpDefinedProperty

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
This commit is contained in:
Cursor AgentandChirag Aggarwal committed 2026-07-29 20:45:50 +00:00
1 parent 8a497b9286
commit 6c974a7da5
1 file changed
+3 -5
+3 -5
View File
@@ -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