diff options
author | Christian Flothmann <christian.flothmann@xabbuh.de> | 2016-04-05 20:28:19 +0200 |
---|---|---|
committer | Christian Flothmann <christian.flothmann@xabbuh.de> | 2016-04-05 20:28:19 +0200 |
commit | 537c417b8af69c054d7e06a1b804062c9cdcfd64 (patch) | |
tree | 3240d065ba9e34e3029fea38ea51a77d5a3fe32c /Http/Tests | |
parent | 5176f267ee3c8ae80e9b2e45c7b681855e3ac56c (diff) | |
download | symfony-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.php | 8 |
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('/'); |