Skip to content

Commit 0f1d9e9

Browse files
committed
tests(exception): remove deprecations
1 parent fa4b847 commit 0f1d9e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Unit/Exception/EventSubscriber/ExceptionListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testOnKernelExceptionWillSetCorrectEventResponseGivenGivenExcept
4848
$event = new ExceptionEvent(
4949
new HttpKernel(new EventDispatcher(), new ControllerResolver()),
5050
Request::create('http://localhost:8000/web/v1/posts'),
51-
HttpKernelInterface::MASTER_REQUEST,
51+
HttpKernelInterface::MAIN_REQUEST,
5252
$exception,
5353
);
5454
$data = [];
@@ -87,7 +87,7 @@ public function testOnKernelExceptionWillSetCorrectEventResponseGivenGivenExcept
8787
$event = new ExceptionEvent(
8888
$this->createMock(KernelInterface::class),
8989
$this->createMock(Request::class),
90-
KernelInterface::MASTER_REQUEST,
90+
KernelInterface::MAIN_REQUEST,
9191
new \LogicException()
9292
);
9393
$data = [];
@@ -114,7 +114,7 @@ public function testOnKernelExceptionWillSetCorrectEventResponseGivenGivenSymfon
114114
$event = new ExceptionEvent(
115115
$this->createMock(KernelInterface::class),
116116
$this->createMock(Request::class),
117-
KernelInterface::MASTER_REQUEST,
117+
KernelInterface::MAIN_REQUEST,
118118
$e = new AccessDeniedHttpException()
119119
);
120120
$data = [];

0 commit comments

Comments
 (0)