summaryrefslogtreecommitdiffstats
path: root/Http/Tests
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2016-04-05 20:28:19 +0200
committerChristian Flothmann <christian.flothmann@xabbuh.de>2016-04-05 20:28:19 +0200
commit537c417b8af69c054d7e06a1b804062c9cdcfd64 (patch)
tree3240d065ba9e34e3029fea38ea51a77d5a3fe32c /Http/Tests
parent5176f267ee3c8ae80e9b2e45c7b681855e3ac56c (diff)
downloadsymfony-security-537c417b8af69c054d7e06a1b804062c9cdcfd64.zip
symfony-security-537c417b8af69c054d7e06a1b804062c9cdcfd64.tar.gz
symfony-security-537c417b8af69c054d7e06a1b804062c9cdcfd64.tar.bz2
mock the proper method
Diffstat (limited to 'Http/Tests')
-rw-r--r--Http/Tests/Firewall/SwitchUserListenerTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Http/Tests/Firewall/SwitchUserListenerTest.php b/Http/Tests/Firewall/SwitchUserListenerTest.php
index bca2c4a..b004b27 100644
--- a/Http/Tests/Firewall/SwitchUserListenerTest.php
+++ b/Http/Tests/Firewall/SwitchUserListenerTest.php
@@ -187,11 +187,17 @@ class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase
$this
->request
->expects($this->any())
- ->method('all')
+ ->method('get')
->with('_switch_user')
->willReturn('_exit');
$this
->request
+ ->query
+ ->expects($this->any())
+ ->method('all')
+ ->will($this->returnValue(array()));
+ $this
+ ->request
->expects($this->any())
->method('getUri')
->willReturn('/');