@@ -137,7 +137,7 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
...
@@ -137,7 +137,7 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
"$metadata_dir/drupal.9.8.1-security.xml",
"$metadata_dir/drupal.9.8.1-security.xml",
[CronUpdater::SECURITY,CronUpdater::ALL],
[CronUpdater::SECURITY,CronUpdater::ALL],
[
[
$this->createValidationResult('9.7.1','',[
$this->createValidationResult('9.7.1',NULL,[
'The currently installed version of Drupal core, 9.7.1, is not in a supported minor version. Your site will not be automatically updated during cron until it is updated to a supported minor version.',
'The currently installed version of Drupal core, 9.7.1, is not in a supported minor version. Your site will not be automatically updated during cron until it is updated to a supported minor version.',
'See the <a href="/admin/reports/updates">available updates page</a> for available updates.',
'See the <a href="/admin/reports/updates">available updates page</a> for available updates.',
]),
]),
...
@@ -148,7 +148,7 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
...
@@ -148,7 +148,7 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
"$metadata_dir/drupal.9.8.1-security.xml",
"$metadata_dir/drupal.9.8.1-security.xml",
[CronUpdater::SECURITY,CronUpdater::ALL],
[CronUpdater::SECURITY,CronUpdater::ALL],
[
[
$this->createValidationResult('9.7.1','',[
$this->createValidationResult('9.7.1',NULL,[
'The currently installed version of Drupal core, 9.7.1, is not in a supported minor version. Your site will not be automatically updated during cron until it is updated to a supported minor version.',
'The currently installed version of Drupal core, 9.7.1, is not in a supported minor version. Your site will not be automatically updated during cron until it is updated to a supported minor version.',
'Use the <a href="/admin/modules/automatic-update">update form</a> to update to a supported version.',
'Use the <a href="/admin/modules/automatic-update">update form</a> to update to a supported version.',
]),
]),
...
@@ -439,19 +439,26 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
...
@@ -439,19 +439,26 @@ class VersionPolicyValidatorTest extends AutomaticUpdatesKernelTestBase {
*
*
* @param string $installed_version
* @param string $installed_version
* The installed version of Drupal core.
* The installed version of Drupal core.
* @param string $target_version
* @param string|null $target_version
* The target version of Drupal core.
* The target version of Drupal core, or NULL if it's not known.
* @param string[] $messages
* @param string[] $messages
* The error messages that the result should contain.
* The error messages that the result should contain.