Explorar o código

test: make I18nTest actually reload English translations again

rugk hai 8 meses
pai
achega
e676264616
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()