Issue #3246203: Replace PreCommitEvent with PreApplyEvent
Merge request reports
Activity
- Resolved by Adam G-H
1 1 <?php 2 2 3 namespace Drupal\Tests\automatic_updates\Unit; 3 namespace Drupal\Tests\automatic_updates\Kernel\ReadinessValidation; I think all other validators tested in this namespace at least listen to
\Drupal\automatic_updates\Event\ReadinessCheckEvent
though some also listen to other events. Maybe we should actually change this namespace to just\Validation
Another thing this brings up is that for validators such as
PendingUpdatesValidator
that subscribe toReadinessCheckEvent
andPreStartEvent
the fact that we useassertCheckerResultsFromManager()
to test that it listens toReadinessCheckEvent
but notPreStartEvent
if it is important that it listens toPreStartEvent
we should also add test coverage for this too. I don't think it would be that are hard. obviously another issue.Also this points out that most of validators that listen to
ReadinessCheckEvent
should also listen toPreStartEvent
because the update maybe started from the API and not just the form. For instanceDiskSpaceValidator
andComposerExecutableValidator
should be able both stop an update trigger via an API call but now they can'tI will make follow ups. Not sure this needs to be done before we finish refactoring logic into
package_manager
.
- Resolved by Adam G-H