mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
test: make sure to unset HTTP_ACCEPT_LANGUAGE at test teardown
This commit is contained in:
@@ -37,6 +37,7 @@ class I18nTest extends TestCase
|
||||
public function tearDown(): void
|
||||
{
|
||||
unset($_COOKIE['lang'], $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
unset($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
}
|
||||
|
||||
public function testTranslationFallback()
|
||||
@@ -186,7 +187,7 @@ class I18nTest extends TestCase
|
||||
$this->assertEquals($input . $result, I18n::_($input . '%s', $input), 'encodes only parameters, not message ID');
|
||||
}
|
||||
|
||||
public function testFrenchApostropheInMessage()
|
||||
public function testApostropheEncodngInMessage()
|
||||
{
|
||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'fr';
|
||||
I18n::loadTranslations();
|
||||
|
||||
Reference in New Issue
Block a user