mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
test: make sure to unset HTTP_ACCEPT_LANGUAGE at test teardown
This commit is contained in:
parent
2c4dd2594c
commit
38a722d2f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue