diff --git a/tests/src/Kernel/StatusCheck/RequestedUpdateValidatorTest.php b/tests/src/Kernel/StatusCheck/RequestedUpdateValidatorTest.php index e4066a05345a5ba2ff86a22e1d15e0d8f35f9ae1..1444ceba81688f9cc394d073e6543b030c87002b 100644 --- a/tests/src/Kernel/StatusCheck/RequestedUpdateValidatorTest.php +++ b/tests/src/Kernel/StatusCheck/RequestedUpdateValidatorTest.php @@ -76,7 +76,8 @@ class RequestedUpdateValidatorTest extends AutomaticUpdatesKernelTestBase { $updater = $this->container->get('automatic_updates.updater'); $updater->begin(['drupal' => '9.8.1']); $updater->stage(); - $this->expectErrorMessage('No updates detected in the staging area.'); + $this->expectException(StageValidationException::class); + $this->expectExceptionMessage('No updates detected in the staging area.'); $updater->apply(); }