File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ public function testExitUserDispatchesEventWithRefreshedUser()
161
161
public function testExitUserDoesNotDispatchEventWithStringUser ()
162
162
{
163
163
$ originalUser = 'anon. ' ;
164
- $ refreshedUser = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
165
164
$ this
166
165
->userProvider
167
166
->expects ($ this ->never ())
@@ -187,9 +186,15 @@ public function testExitUserDoesNotDispatchEventWithStringUser()
187
186
$ this
188
187
->request
189
188
->expects ($ this ->any ())
190
- ->method ('all ' )
189
+ ->method ('get ' )
191
190
->with ('_switch_user ' )
192
191
->willReturn ('_exit ' );
192
+ $ this
193
+ ->request
194
+ ->query
195
+ ->expects ($ this ->any ())
196
+ ->method ('all ' )
197
+ ->will ($ this ->returnValue (array ()));
193
198
$ this
194
199
->request
195
200
->expects ($ this ->any ())
You can’t perform that action at this time.
0 commit comments