diff --git a/tests/Registry/JobContainerTest.php b/tests/Registry/JobContainerTest.php index 90da6b8..3a8bb83 100644 --- a/tests/Registry/JobContainerTest.php +++ b/tests/Registry/JobContainerTest.php @@ -25,7 +25,7 @@ public function testGet(): void public function testGetNotFound(): void { - $this->expectDeprecationMessage('You have requested a non-existent job "bar".'); + $this->expectExceptionMessage('You have requested a non-existent job "bar".'); $this->expectException(NotFoundExceptionInterface::class); $foo = $this->prophesize(JobInterface::class)->reveal(); $container = new JobContainer(['foo' => $foo]);