This commit is contained in:
Pierre Rudloff 2017-10-29 23:21:13 +01:00
parent f30582a7c3
commit 0a2971399b
7 changed files with 53 additions and 53 deletions

View file

@ -44,8 +44,8 @@ class LocaleMiddlewareTest extends TestCase
{
$this->markTestSkipped('For some reason, this test fails on Travis even if the fr_FR locale is installed.');
$locale = [
'language'=> 'fr',
'region' => 'FR',
'language' => 'fr',
'region' => 'FR',
];
$this->assertEquals('fr_FR', $this->middleware->testLocale($locale));
}
@ -58,8 +58,8 @@ class LocaleMiddlewareTest extends TestCase
public function testLocaleWithWrongLocale()
{
$locale = [
'language'=> 'foo',
'region' => 'BAR',
'language' => 'foo',
'region' => 'BAR',
];
$this->assertNull($this->middleware->testLocale($locale));
$this->assertNull($this->middleware->testLocale([]));