@@ -35,7 +35,7 @@ public function testHandleWithContextHavingAToken()
35
35
->method ('authenticate ' )
36
36
;
37
37
38
- $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , $ authenticationManager );
38
+ $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , null , $ authenticationManager );
39
39
$ listener ->handle ($ this ->getMock ('Symfony\Component\HttpKernel\Event\GetResponseEvent ' , array (), array (), '' , false ));
40
40
}
41
41
@@ -67,7 +67,7 @@ public function testHandleWithContextHavingNoToken()
67
67
->with ($ anonymousToken )
68
68
;
69
69
70
- $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , $ authenticationManager );
70
+ $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , null , $ authenticationManager );
71
71
$ listener ->handle ($ this ->getMock ('Symfony\Component\HttpKernel\Event\GetResponseEvent ' , array (), array (), '' , false ));
72
72
}
73
73
@@ -86,7 +86,7 @@ public function testHandledEventIsLogged()
86
86
87
87
$ authenticationManager = $ this ->getMock ('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' );
88
88
89
- $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , $ authenticationManager , $ logger );
89
+ $ listener = new AnonymousAuthenticationListener ($ context , 'TheKey ' , $ logger , $ authenticationManager );
90
90
$ listener ->handle ($ this ->getMock ('Symfony\Component\HttpKernel\Event\GetResponseEvent ' , array (), array (), '' , false ));
91
91
}
92
92
}
0 commit comments