@@ -48,7 +48,7 @@ public function testOnCoreSecurityDoesNotTryToPopulateNonEmptyTokenStorage()
4848 ->method ('setToken ' )
4949 ;
5050
51- $ this ->assertNull ($ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MASTER_REQUEST )));
51+ $ this ->assertNull ($ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MAIN_REQUEST )));
5252 }
5353
5454 public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet ()
@@ -67,7 +67,7 @@ public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet()
6767 ->willReturn (null )
6868 ;
6969
70- $ this ->assertNull ($ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MASTER_REQUEST )));
70+ $ this ->assertNull ($ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MAIN_REQUEST )));
7171 }
7272
7373 public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenticationManagerImplementation ()
@@ -100,7 +100,7 @@ public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenti
100100 ->willThrowException ($ exception )
101101 ;
102102
103- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
103+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
104104 }
105105
106106 public function testOnCoreSecurityIgnoresAuthenticationOptionallyRethrowsExceptionThrownAuthenticationManagerImplementation ()
@@ -133,7 +133,7 @@ public function testOnCoreSecurityIgnoresAuthenticationOptionallyRethrowsExcepti
133133 ->willThrowException ($ exception )
134134 ;
135135
136- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MASTER_REQUEST ));
136+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MAIN_REQUEST ));
137137 }
138138
139139 public function testOnCoreSecurityAuthenticationExceptionDuringAutoLoginTriggersLoginFail ()
@@ -163,7 +163,7 @@ public function testOnCoreSecurityAuthenticationExceptionDuringAutoLoginTriggers
163163 ->method ('authenticate ' )
164164 ;
165165
166- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MASTER_REQUEST ));
166+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MAIN_REQUEST ));
167167 }
168168
169169 public function testOnCoreSecurity ()
@@ -195,7 +195,7 @@ public function testOnCoreSecurity()
195195 ->willReturn ($ token )
196196 ;
197197
198- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MASTER_REQUEST ));
198+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), new Request (), HttpKernelInterface::MAIN_REQUEST ));
199199 }
200200
201201 public function testSessionStrategy ()
@@ -243,7 +243,7 @@ public function testSessionStrategy()
243243 ->willReturn (null )
244244 ;
245245
246- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
246+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
247247 }
248248
249249 public function testSessionIsMigratedByDefault ()
@@ -289,7 +289,7 @@ public function testSessionIsMigratedByDefault()
289289 $ request = new Request ();
290290 $ request ->setSession ($ session );
291291
292- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
292+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
293293 }
294294
295295 public function testOnCoreSecurityInteractiveLoginEventIsDispatchedIfDispatcherIsPresent ()
0 commit comments