Skip to content

Commit 9e0952f

Browse files
[HttpFoundation] make cookies auto-secure when passing them $secure=null + plan to make it and samesite=lax the defaults in 5.0
1 parent fc1a109 commit 9e0952f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/RememberMe/ResponseListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ResponseListenerTest extends TestCase
2424
{
2525
public function testRememberMeCookieIsSentWithResponse()
2626
{
27-
$cookie = new Cookie('rememberme');
27+
$cookie = new Cookie('rememberme', null, 0, '/', null, false, true, false, null);
2828

2929
$request = $this->getRequest(array(
3030
RememberMeServicesInterface::COOKIE_ATTR_NAME => $cookie,
@@ -39,7 +39,7 @@ public function testRememberMeCookieIsSentWithResponse()
3939

4040
public function testRememberMeCookieIsNotSendWithResponseForSubRequests()
4141
{
42-
$cookie = new Cookie('rememberme');
42+
$cookie = new Cookie('rememberme', null, 0, '/', null, false, true, false, null);
4343

4444
$request = $this->getRequest(array(
4545
RememberMeServicesInterface::COOKIE_ATTR_NAME => $cookie,

0 commit comments

Comments
 (0)