@@ -48,7 +48,7 @@ public function testOnCoreSecurityDoesNotTryToPopulateNonEmptyTokenStorage()
48
48
->method ('setToken ' )
49
49
;
50
50
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 )));
52
52
}
53
53
54
54
public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet ()
@@ -67,7 +67,7 @@ public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet()
67
67
->willReturn (null )
68
68
;
69
69
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 )));
71
71
}
72
72
73
73
public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenticationManagerImplementation ()
@@ -100,7 +100,7 @@ public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenti
100
100
->willThrowException ($ exception )
101
101
;
102
102
103
- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
103
+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
104
104
}
105
105
106
106
public function testOnCoreSecurityIgnoresAuthenticationOptionallyRethrowsExceptionThrownAuthenticationManagerImplementation ()
@@ -133,7 +133,7 @@ public function testOnCoreSecurityIgnoresAuthenticationOptionallyRethrowsExcepti
133
133
->willThrowException ($ exception )
134
134
;
135
135
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 ));
137
137
}
138
138
139
139
public function testOnCoreSecurityAuthenticationExceptionDuringAutoLoginTriggersLoginFail ()
@@ -163,7 +163,7 @@ public function testOnCoreSecurityAuthenticationExceptionDuringAutoLoginTriggers
163
163
->method ('authenticate ' )
164
164
;
165
165
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 ));
167
167
}
168
168
169
169
public function testOnCoreSecurity ()
@@ -195,7 +195,7 @@ public function testOnCoreSecurity()
195
195
->willReturn ($ token )
196
196
;
197
197
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 ));
199
199
}
200
200
201
201
public function testSessionStrategy ()
@@ -243,7 +243,7 @@ public function testSessionStrategy()
243
243
->willReturn (null )
244
244
;
245
245
246
- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
246
+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
247
247
}
248
248
249
249
public function testSessionIsMigratedByDefault ()
@@ -289,7 +289,7 @@ public function testSessionIsMigratedByDefault()
289
289
$ request = new Request ();
290
290
$ request ->setSession ($ session );
291
291
292
- $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MASTER_REQUEST ));
292
+ $ listener (new RequestEvent ($ this ->createMock (HttpKernelInterface::class), $ request , HttpKernelInterface::MAIN_REQUEST ));
293
293
}
294
294
295
295
public function testOnCoreSecurityInteractiveLoginEventIsDispatchedIfDispatcherIsPresent ()
0 commit comments