Skip to content
Snippets Groups Projects
Commit c5ffc40f authored by Ted Bowman's avatar Ted Bowman Committed by Kunal Sachdev
Browse files

fix failing test

parent 11c740d7
No related branches found
No related tags found
1 merge request!615Issue #3321684: Should most validators that subscribe to PreCreate check readiness to update also subscribe to PreApply?
This commit is part of merge request !615. Comments created here will be created in the context of that merge request.
...@@ -4,6 +4,7 @@ declare(strict_types = 1); ...@@ -4,6 +4,7 @@ declare(strict_types = 1);
namespace Drupal\package_manager\Validator; namespace Drupal\package_manager\Validator;
use Drupal\package_manager\Event\PreApplyEvent;
use Drupal\package_manager\Event\PreCreateEvent; use Drupal\package_manager\Event\PreCreateEvent;
use Drupal\package_manager\Event\PreOperationStageEvent; use Drupal\package_manager\Event\PreOperationStageEvent;
use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Core\StringTranslation\StringTranslationTrait;
...@@ -92,6 +93,7 @@ final class PendingUpdatesValidator implements EventSubscriberInterface { ...@@ -92,6 +93,7 @@ final class PendingUpdatesValidator implements EventSubscriberInterface {
return [ return [
PreCreateEvent::class => 'validateStagePreOperation', PreCreateEvent::class => 'validateStagePreOperation',
StatusCheckEvent::class => 'validateStagePreOperation', StatusCheckEvent::class => 'validateStagePreOperation',
PreApplyEvent::class => 'validateStagePreOperation',
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment