Skip to content

Commit 5c94dcc

Browse files
committed
minor #18452 [Security] mock the proper method (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [Security] mock the proper method | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 4b78d03 mock the proper method
2 parents 034f476 + 4b78d03 commit 5c94dcc

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)