@@ -36,7 +36,7 @@ public function testHandleUnmatchedPath()
3636 $ dispatcher = $ this ->getEventDispatcher ();
3737 [$ listener , , $ httpUtils , $ options ] = $ this ->getListener ($ dispatcher );
3838
39- [$ event , $ request ] = $ this ->getGetResponseEvent ();
39+ [$ event , $ request ] = $ this ->getRequestEvent ();
4040
4141 $ logoutEventDispatched = false ;
4242 $ dispatcher ->addListener (LogoutEvent::class, function (LogoutEvent $ event ) use (&$ logoutEventDispatched ) {
@@ -60,7 +60,7 @@ public function testHandleMatchedPathWithCsrfValidation()
6060
6161 [$ listener , $ tokenStorage , $ httpUtils , $ options ] = $ this ->getListener ($ dispatcher , $ tokenManager );
6262
63- [$ event , $ request ] = $ this ->getGetResponseEvent ();
63+ [$ event , $ request ] = $ this ->getRequestEvent ();
6464
6565 $ request ->query ->set ('_csrf_token ' , 'token ' );
6666
@@ -98,7 +98,7 @@ public function testHandleMatchedPathWithoutCsrfValidation()
9898 $ dispatcher = $ this ->getEventDispatcher ();
9999 [$ listener , $ tokenStorage , $ httpUtils , $ options ] = $ this ->getListener ($ dispatcher );
100100
101- [$ event , $ request ] = $ this ->getGetResponseEvent ();
101+ [$ event , $ request ] = $ this ->getRequestEvent ();
102102
103103 $ httpUtils ->expects ($ this ->once ())
104104 ->method ('checkRequestPath ' )
@@ -131,7 +131,7 @@ public function testNoResponseSet()
131131
132132 [$ listener , , $ httpUtils , $ options ] = $ this ->getListener ();
133133
134- [$ event , $ request ] = $ this ->getGetResponseEvent ();
134+ [$ event , $ request ] = $ this ->getRequestEvent ();
135135
136136 $ httpUtils ->expects ($ this ->once ())
137137 ->method ('checkRequestPath ' )
@@ -148,7 +148,7 @@ public function testCsrfValidationFails()
148148
149149 [$ listener , , $ httpUtils , $ options ] = $ this ->getListener (null , $ tokenManager );
150150
151- [$ event , $ request ] = $ this ->getGetResponseEvent ();
151+ [$ event , $ request ] = $ this ->getRequestEvent ();
152152
153153 $ request ->query ->set ('_csrf_token ' , 'token ' );
154154
@@ -179,7 +179,7 @@ public function testLegacyLogoutHandlers()
179179 $ token = $ this ->getToken ();
180180 $ tokenStorage ->expects ($ this ->any ())->method ('getToken ' )->willReturn ($ token );
181181
182- [$ event , $ request ] = $ this ->getGetResponseEvent ();
182+ [$ event , $ request ] = $ this ->getRequestEvent ();
183183
184184 $ httpUtils ->expects ($ this ->once ())
185185 ->method ('checkRequestPath ' )
@@ -208,7 +208,7 @@ private function getTokenStorage()
208208 return $ this ->createMock (TokenStorageInterface::class);
209209 }
210210
211- private function getGetResponseEvent ()
211+ private function getRequestEvent ()
212212 {
213213 $ event = $ this ->createMock (RequestEvent::class);
214214
0 commit comments