mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
test(locale): satisfy Rector NarrowUnusedSetUpDefinedProperty
Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
This commit is contained in:
1 parent
8a497b9286
commit
6c974a7da5
1 file changed
+3
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user