Skip to content

Commit ac8d232

Browse files
committed
Fix encrypted cookies in tests
1 parent 9090fb1 commit ac8d232

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Feature/SetLocaleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function it_looks_for_a_locale_in_the_url_first()
3636
$this->setSessionLocale('fr');
3737
$this->setBrowserLocales('it');
3838
$this->setAppLocale('en');
39-
$cookie = [$this->cookieName => Crypt::encrypt('de')];
39+
$cookie = [$this->cookieName => Crypt::encrypt('de', false)];
4040

4141
Route::get('nl/some/route', function () {
4242
return App::getLocale();
@@ -56,7 +56,7 @@ public function you_can_configure_which_segment_to_use_as_locale()
5656
$this->setSessionLocale('fr');
5757
$this->setBrowserLocales('it');
5858
$this->setAppLocale('en');
59-
$cookie = [$this->cookieName => Crypt::encrypt('de')];
59+
$cookie = [$this->cookieName => Crypt::encrypt('de', false)];
6060

6161
Config::set('localizer.url-segment', 2);
6262

@@ -78,7 +78,7 @@ public function it_looks_for_a_locale_in_the_session_if_not_found_in_the_url()
7878
$this->setSessionLocale('fr');
7979
$this->setBrowserLocales('it');
8080
$this->setAppLocale('en');
81-
$cookie = [$this->cookieName => Crypt::encrypt('de')];
81+
$cookie = [$this->cookieName => Crypt::encrypt('de', false)];
8282

8383
Route::get('some/route', function () {
8484
return App::getLocale();
@@ -98,7 +98,7 @@ public function it_looks_for_a_locale_in_a_cookie_if_not_found_in_the_url_or_ses
9898
$this->setSessionLocale(null);
9999
$this->setBrowserLocales('it');
100100
$this->setAppLocale('en');
101-
$cookie = [$this->cookieName => Crypt::encrypt('de')];
101+
$cookie = [$this->cookieName => Crypt::encrypt('de', false)];
102102

103103
Route::get('some/route', function () {
104104
return App::getLocale();

0 commit comments

Comments
 (0)