Răsfoiți Sursa

test: make I18nTest actually reload English translations again

rugk 8 luni în urmă
părinte
comite
e676264616
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      tst/I18nTest.php

+ 1 - 1
tst/I18nTest.php

@@ -37,7 +37,7 @@ class I18nTest extends TestCase
     public function tearDown(): void
     {
         unset($_COOKIE['lang'], $_SERVER['HTTP_ACCEPT_LANGUAGE']);
-        unset($_SERVER['HTTP_ACCEPT_LANGUAGE']);
+        I18n::loadTranslations();
     }
 
     public function testTranslationFallback()