File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,11 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
421
421
->willReturn ('std_user ' )
422
422
;
423
423
424
- $ mockToken = $ this ->getMock ('Symfony\Component\Security\Core\Authentication\Token\TokenInterface ' );
424
+ $ mockToken = $ this
425
+ ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\TokenInterface ' )
426
+ ->disableOriginalConstructor ()
427
+ ->getMock ()
428
+ ;
425
429
426
430
$ mockToken
427
431
->method ('getUser ' )
@@ -480,13 +484,21 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
480
484
481
485
public function test_regression_with_unauthenticated_user_token_PR_78 ()
482
486
{
483
- $ mockToken = $ this ->createMock (TokenInterface::class);
487
+ $ mockToken = $ this
488
+ ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\TokenInterface ' )
489
+ ->disableOriginalConstructor ()
490
+ ->getMock ()
491
+ ;
484
492
$ mockToken
485
493
->method ('isAuthenticated ' )
486
494
->willReturn (false )
487
495
;
488
496
489
- $ mockEvent = $ this ->createMock (GetResponseEvent::class);
497
+ $ mockEvent = $ this
498
+ ->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseEvent ' )
499
+ ->disableOriginalConstructor ()
500
+ ->getMock ()
501
+ ;
490
502
491
503
$ mockEvent
492
504
->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments