summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-12-20 17:02:27 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2014-12-20 17:02:27 +0100
commitab8d1dc9a59700ebf179461b5a85e6d11e201705 (patch)
tree983ed3b9b10737597aefd362b23e06852242fde0 /Http
parent24211b9e8e8061626ef0ee0490790a99af306a45 (diff)
parent6b42215ea1e9d59e8d449b7436ec05e04cb00f5e (diff)
downloadsymfony-security-ab8d1dc9a59700ebf179461b5a85e6d11e201705.zip
symfony-security-ab8d1dc9a59700ebf179461b5a85e6d11e201705.tar.gz
symfony-security-ab8d1dc9a59700ebf179461b5a85e6d11e201705.tar.bz2
Merge branch '2.5' into 2.6
* 2.5: [Config] adds missing « use » statement for InvalidTypeException type hint in documentation. [Config] fixes broken unit test on ArrayNode class. fixed CS [Security] Delete old session on auth strategy migrate update required minimum TwigBridge version Very minor grammar fix in error message [Tests] Silenced all deprecations in tests for 2.3 BinaryFileResponse - add missing newline fixed CS add a limit and a test to FlattenExceptionTest. CS: There should be no empty lines following phpdocs [FrameworkBundle] fix cache:clear command [2.3] Docblocks should not be followed by a blank line Fix return phpdoc [PropertyAccess] Added test to verify #5775 is fixed
Diffstat (limited to 'Http')
-rw-r--r--Http/Session/SessionAuthenticationStrategy.php2
-rw-r--r--Http/Tests/Session/SessionAuthenticationStrategyTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Http/Session/SessionAuthenticationStrategy.php b/Http/Session/SessionAuthenticationStrategy.php
index 0e688c7..dd258a0 100644
--- a/Http/Session/SessionAuthenticationStrategy.php
+++ b/Http/Session/SessionAuthenticationStrategy.php
@@ -47,7 +47,7 @@ class SessionAuthenticationStrategy implements SessionAuthenticationStrategyInte
return;
case self::MIGRATE:
- $request->getSession()->migrate();
+ $request->getSession()->migrate(true);
return;
diff --git a/Http/Tests/Session/SessionAuthenticationStrategyTest.php b/Http/Tests/Session/SessionAuthenticationStrategyTest.php
index 7be9054..a1f960f 100644
--- a/Http/Tests/Session/SessionAuthenticationStrategyTest.php
+++ b/Http/Tests/Session/SessionAuthenticationStrategyTest.php
@@ -40,7 +40,7 @@ class SessionAuthenticationStrategyTest extends \PHPUnit_Framework_TestCase
public function testSessionIsMigrated()
{
$session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface');
- $session->expects($this->once())->method('migrate');
+ $session->expects($this->once())->method('migrate')->with($this->equalTo(true));
$strategy = new SessionAuthenticationStrategy(SessionAuthenticationStrategy::MIGRATE);
$strategy->onAuthentication($this->getRequest($session), $this->getToken());