diff options
author | Klaas Cuvelier <cuvelierklaas@gmail.com> | 2015-04-28 09:07:44 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-10-06 16:28:55 +0200 |
commit | 374b2d638374842e7dddf7601c6605670e4070b3 (patch) | |
tree | 7c463c94e6ef336e7809709a7fb6cb78808ceb32 /Tests/Http/RememberMe/AbstractRememberMeServicesTest.php | |
parent | b4534d808d7bd8f5f65959cb2187da072b35a9da (diff) | |
download | symfony-security-374b2d638374842e7dddf7601c6605670e4070b3.zip symfony-security-374b2d638374842e7dddf7601c6605670e4070b3.tar.gz symfony-security-374b2d638374842e7dddf7601c6605670e4070b3.tar.bz2 |
[2.3][SECURITY] Add remember me cookie configuration
Diffstat (limited to 'Tests/Http/RememberMe/AbstractRememberMeServicesTest.php')
-rw-r--r-- | Tests/Http/RememberMe/AbstractRememberMeServicesTest.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php b/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php index 9dbcf3f..c98b6b4 100644 --- a/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php +++ b/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php @@ -91,11 +91,8 @@ class AbstractRememberMeServicesTest extends \PHPUnit_Framework_TestCase $request = new Request(); $response = new Response(); $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface'); - $service->logout($request, $response, $token); - $cookie = $request->attributes->get(RememberMeServicesInterface::COOKIE_ATTR_NAME); - $this->assertInstanceOf('Symfony\Component\HttpFoundation\Cookie', $cookie); $this->assertTrue($cookie->isCleared()); $this->assertSame($options['name'], $cookie->getName()); @@ -286,13 +283,6 @@ class AbstractRememberMeServicesTest extends \PHPUnit_Framework_TestCase $userProvider = $this->getProvider(); } - if (!isset($options['secure'])) { - $options['secure'] = false; - } - if (!isset($options['httponly'])) { - $options['httponly'] = true; - } - return $this->getMockForAbstractClass('Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices', array( array($userProvider), 'fookey', 'fookey', $options, $logger, )); |