I am glad we have this new test class. I suspect that UpdateVersionValidatorTest in some methods is only testing logic that happens in CronUpdateVersionValidator should make a follow up to more of these methods to the new class?
'Drupal cannot be automatically updated during cron from its current version, 9.7.0-alpha1, because Automatic Updates only supports updating from stable versions during cron.',
]),
];
return[
'disabled'=>[
CronUpdater::DISABLED,
[],
],
'security only'=>[
CronUpdater::SECURITY,
$unstable_current_version,
],
'all'=>[
CronUpdater::ALL,
$unstable_current_version,
],
];
}
/**
* Tests that validation is skipped if cron updates are disabled.
*
* @param string $cron_setting
* The value of the automatic_updates.settings:cron config setting.
I am glad we have this new test class. I suspect that
UpdateVersionValidatorTest
in some methods is only testing logic that happens inCronUpdateVersionValidator
should make a follow up to more of these methods to the new class?