@@ -64,7 +64,7 @@ public function testReturnedWhenNoControllerFound(): void
6464 $ kernel = $ this ->getMockBuilder ('Symfony \\Component \\HttpKernel \\HttpKernelInterface ' )->getMock ();
6565 $ request = new Request ();
6666
67- $ event = new ControllerEvent ($ kernel , static function () {}, $ request , HttpKernelInterface::MASTER_REQUEST );
67+ $ event = new ControllerEvent ($ kernel , static function () {}, $ request , HttpKernelInterface::MAIN_REQUEST );
6868
6969 $ listener ->onKernelController ($ event );
7070 }
@@ -81,7 +81,7 @@ public function testReturnedWhenNoAttributesFound(): void
8181 public function testDelegatesToPathLimitProcessorWhenNoAttributesFound (): void
8282 {
8383 $ request = new Request ();
84- $ event = $ this ->createEvent (HttpKernelInterface::MASTER_REQUEST , $ request );
84+ $ event = $ this ->createEvent (HttpKernelInterface::MAIN_REQUEST , $ request );
8585
8686 $ listener = $ this ->createListener ($ this ->once ());
8787
@@ -109,7 +109,7 @@ public function testDispatchIsCalledWithAttributes(): void
109109 $ listener = $ this ->createListener ($ this ->exactly (2 ));
110110
111111 $ event = $ this ->createEvent (
112- HttpKernelInterface::MASTER_REQUEST ,
112+ HttpKernelInterface::MAIN_REQUEST ,
113113 null ,
114114 new MockControllerWithAttributes ()
115115 );
@@ -119,7 +119,7 @@ public function testDispatchIsCalledWithAttributes(): void
119119
120120 public function testDispatchIsCalledIfThePathLimitProcessorReturnsARateLimit (): void
121121 {
122- $ event = $ this ->createEvent (HttpKernelInterface::MASTER_REQUEST );
122+ $ event = $ this ->createEvent (HttpKernelInterface::MAIN_REQUEST );
123123
124124 $ listener = $ this ->createListener ($ this ->exactly (2 ));
125125 $ rateLimit = new RateLimit (
@@ -315,7 +315,7 @@ public function testFindBestMethodMatchMatchingMultipleAnnotations(): void
315315 }
316316
317317 protected function createEvent (
318- int $ requestType = HttpKernelInterface::MASTER_REQUEST ,
318+ int $ requestType = HttpKernelInterface::MAIN_REQUEST ,
319319 ?Request $ request = null ,
320320 ?MockController $ controller = null ,
321321 ): ControllerEvent
0 commit comments