Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Nielsen committed Dec 1, 2024
1 parent 0c3ba96 commit 443610a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LaravelLocalizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,15 +884,15 @@ public function testRedirectWithHiddenDefaultLocaleInUrlAndSavedLocale()

$crawler = $this->call(
'GET',
$this->test_url,
self::$testUrl,
[],
['locale' => $savedLocale],
[],
[]
);

$this->assertResponseStatus(302);
$this->assertRedirectedTo($this->test_url . $savedLocale);
$this->assertRedirectedTo(self::$testUrl . $savedLocale);

$localeCookie = $crawler->headers->getCookies()[0];
$this->assertEquals($savedLocale, $localeCookie->getValue());
Expand Down

0 comments on commit 443610a

Please sign in to comment.