Skip to content

Commit 4b78d03

Browse files
committed
mock the proper method
1 parent 034f476 commit 4b78d03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,15 @@ public function testExitUserDoesNotDispatchEventWithStringUser()
187187
$this
188188
->request
189189
->expects($this->any())
190-
->method('all')
190+
->method('get')
191191
->with('_switch_user')
192192
->willReturn('_exit');
193+
$this
194+
->request
195+
->query
196+
->expects($this->any())
197+
->method('all')
198+
->will($this->returnValue(array()));
193199
$this
194200
->request
195201
->expects($this->any())

0 commit comments

Comments
 (0)