public function testRememberMeCookieIsSentWithResponse() { $cookie =
new Cookie('rememberme', null, 0, '/', null, false, true, false, null
);
$request =
$this->
getRequest([ ResponseListener::COOKIE_ATTR_NAME =>
$cookie,
]);
$response =
$this->
getResponse();
$response->headers->
expects($this->
once())->
method('setCookie'
)->
with($cookie);
$listener =
new ResponseListener();
$listener->
onKernelResponse($this->
getEvent($request,
$response));
} public function testRememberMeCookieIsNotSendWithResponseForSubRequests() { $cookie =
new Cookie('rememberme', null, 0, '/', null, false, true, false, null
);
$request =
$this->
getRequest([ ResponseListener::COOKIE_ATTR_NAME =>
$cookie,
]);