From 4b78d0337954bd48c33a3f5d6060c5800259c8e4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 5 Apr 2016 20:28:19 +0200 Subject: [PATCH] mock the proper method --- .../Http/Tests/Firewall/SwitchUserListenerTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php index bca2c4a333..b004b2754d 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -187,9 +187,15 @@ 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())