File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public function testSwitchUserIsDisallowed()
233
233
public function testSwitchUser ()
234
234
{
235
235
$ token = $ this ->getToken (array (new Role ('the role ' )));
236
- $ user = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
236
+ $ user = $ this ->getMockBuilder ('Symfony\Component\Security\Core\User\UserInterface ' )-> getMock ( );
237
237
$ user ->expects ($ this ->any ())->method ('getRoles ' )->will ($ this ->returnValue (array ()));
238
238
239
239
$ this ->tokenStorage ->expects ($ this ->any ())->method ('getToken ' )->will ($ this ->returnValue ($ token ));
@@ -263,7 +263,7 @@ public function testSwitchUser()
263
263
public function testSwitchUserKeepsOtherQueryStringParameters ()
264
264
{
265
265
$ token = $ this ->getToken (array (new Role ('the role ' )));
266
- $ user = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
266
+ $ user = $ this ->getMockBuilder ('Symfony\Component\Security\Core\User\UserInterface ' )-> getMock ( );
267
267
$ user ->expects ($ this ->any ())->method ('getRoles ' )->will ($ this ->returnValue (array ()));
268
268
269
269
$ this ->tokenStorage ->expects ($ this ->any ())->method ('getToken ' )->will ($ this ->returnValue ($ token ));
You can’t perform that action at this time.
0 commit comments