From 6a45129b4170d0632eadb6ed2a796e8a71a287a7 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 30 Jun 2015 18:51:15 +0200 Subject: [PATCH] [Security/Http] Fix test --- .../Security/Http/Tests/Firewall/SwitchUserListenerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php index 2be0325a17..a3c96f2d09 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -138,6 +138,12 @@ class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase ->expects($this->any()) ->method('getUri') ->willReturn('/'); + $this + ->request + ->query + ->expects($this->any()) + ->method('all') + ->will($this->returnValue(array())); $dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); $dispatcher