summaryrefslogtreecommitdiffstats
path: root/Http/Tests/Firewall
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2016-03-25 10:13:40 +0100
committerChristian Flothmann <christian.flothmann@xabbuh.de>2016-03-25 16:52:47 +0100
commitd41391616712f23df16277d674280cea6cb5f139 (patch)
tree6496be36928eaa0c803d1c548d3040e4ac5eeb3b /Http/Tests/Firewall
parent535f34efbde200c28f1f10ba531e24bb95cf55d5 (diff)
downloadsymfony-security-d41391616712f23df16277d674280cea6cb5f139.zip
symfony-security-d41391616712f23df16277d674280cea6cb5f139.tar.gz
symfony-security-d41391616712f23df16277d674280cea6cb5f139.tar.bz2
fix mocksv2.7.11
* check for existance of `setMetadataFactory()` method (this is needed for tests run with deps=high as the method was removed in Symfony 3.0) * fix mock testing the `EngineInterface` as the `stream()` method cannot be mocked when it is does not exist in the mocked interface
Diffstat (limited to 'Http/Tests/Firewall')
-rw-r--r--Http/Tests/Firewall/SwitchUserListenerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Tests/Firewall/SwitchUserListenerTest.php b/Http/Tests/Firewall/SwitchUserListenerTest.php
index bcba3c2..f43b564 100644
--- a/Http/Tests/Firewall/SwitchUserListenerTest.php
+++ b/Http/Tests/Firewall/SwitchUserListenerTest.php
@@ -55,7 +55,7 @@ class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase
$this->request->expects($this->any())->method('get')->with('_switch_user')->will($this->returnValue(null));
$this->event->expects($this->never())->method('setResponse');
- $this->securityContext->expects($this->never())->method('setToken');
+ $this->tokenStorage->expects($this->never())->method('setToken');
$listener = new SwitchUserListener($this->tokenStorage, $this->userProvider, $this->userChecker, 'provider123', $this->accessDecisionManager);
$listener->handle($this->event);