|
|
@@ -322,7 +322,9 @@ class CookieComponentTest extends TestCase
|
|
|
'path' => '/',
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
- 'httpOnly' => false];
|
|
|
+ 'httpOnly' => false,
|
|
|
+ 'samesite' => null,
|
|
|
+ ];
|
|
|
$result = $this->Controller->response->getCookie('Testing');
|
|
|
|
|
|
$this->assertEquals($future->format('U'), $result['expire'], '', 3);
|
|
|
@@ -350,7 +352,9 @@ class CookieComponentTest extends TestCase
|
|
|
'path' => '/',
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
- 'httpOnly' => true];
|
|
|
+ 'httpOnly' => true,
|
|
|
+ 'samesite' => null,
|
|
|
+ ];
|
|
|
$result = $this->Controller->response->getCookie('Testing');
|
|
|
$this->assertEquals($expected, $result);
|
|
|
}
|
|
|
@@ -375,6 +379,7 @@ class CookieComponentTest extends TestCase
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
'httpOnly' => false,
|
|
|
+ 'samesite' => null,
|
|
|
];
|
|
|
$result = $this->Controller->response->getCookie('Open');
|
|
|
unset($result['expire']);
|
|
|
@@ -442,7 +447,9 @@ class CookieComponentTest extends TestCase
|
|
|
'path' => '/',
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
- 'httpOnly' => true];
|
|
|
+ 'httpOnly' => true,
|
|
|
+ 'samesite' => null,
|
|
|
+ ];
|
|
|
$result = $this->Controller->response->getCookie('Testing');
|
|
|
$this->assertEquals($expected, $result);
|
|
|
}
|
|
|
@@ -462,6 +469,7 @@ class CookieComponentTest extends TestCase
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
'httpOnly' => false,
|
|
|
+ 'samesite' => null,
|
|
|
];
|
|
|
$result = $this->Controller->response->getCookie('Testing');
|
|
|
|
|
|
@@ -487,6 +495,7 @@ class CookieComponentTest extends TestCase
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
'httpOnly' => false,
|
|
|
+ 'samesite' => null,
|
|
|
];
|
|
|
$result = $this->Controller->response->getCookie('User');
|
|
|
unset($result['expire']);
|
|
|
@@ -502,6 +511,7 @@ class CookieComponentTest extends TestCase
|
|
|
'domain' => '',
|
|
|
'secure' => false,
|
|
|
'httpOnly' => false,
|
|
|
+ 'samesite' => null,
|
|
|
];
|
|
|
$result = $this->Controller->response->getCookie('User');
|
|
|
unset($result['expire']);
|