From c5ffc40ff1289dc3276d0ed39aa6edb81f01421f Mon Sep 17 00:00:00 2001 From: Ted Bowman <ted+git@tedbow.com> Date: Mon, 5 Dec 2022 23:07:54 -0500 Subject: [PATCH] fix failing test --- package_manager/src/Validator/PendingUpdatesValidator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_manager/src/Validator/PendingUpdatesValidator.php b/package_manager/src/Validator/PendingUpdatesValidator.php index a508d9420a..507157b9af 100644 --- a/package_manager/src/Validator/PendingUpdatesValidator.php +++ b/package_manager/src/Validator/PendingUpdatesValidator.php @@ -4,6 +4,7 @@ declare(strict_types = 1); namespace Drupal\package_manager\Validator; +use Drupal\package_manager\Event\PreApplyEvent; use Drupal\package_manager\Event\PreCreateEvent; use Drupal\package_manager\Event\PreOperationStageEvent; use Drupal\Core\StringTranslation\StringTranslationTrait; @@ -92,6 +93,7 @@ final class PendingUpdatesValidator implements EventSubscriberInterface { return [ PreCreateEvent::class => 'validateStagePreOperation', StatusCheckEvent::class => 'validateStagePreOperation', + PreApplyEvent::class => 'validateStagePreOperation', ]; } -- GitLab