diff --git a/src/Validator/PhpExtensionsValidator.php b/src/Validator/PhpExtensionsValidator.php index 4349bfa9f7756fef21dba2b430f8304431fc46fd..958bb8536b68ddab578c6f11757caeeb7860a8ed 100644 --- a/src/Validator/PhpExtensionsValidator.php +++ b/src/Validator/PhpExtensionsValidator.php @@ -27,7 +27,7 @@ final class PhpExtensionsValidator extends PackageManagerPhpExtensionsValidator */ public function validateXdebug(PreOperationStageEvent $event): void { if ($this->isExtensionLoaded('xdebug') && $event->stage instanceof CronUpdateStage) { - $event->addError([$this->t("Xdebug is enabled, currently Cron Updates are not allowed while it is enabled. If Xdebug is not disabled you will not receive security and other updates during cron.")]); + $event->addError([$this->t("Unattended updates are not allowed while Xdebug is enabled. You cannot receive updates, including security updates, until it is disabled.")]); } elseif ($event instanceof StatusCheckEvent) { parent::validateXdebug($event); diff --git a/tests/src/Kernel/StatusCheck/PhpExtensionsValidatorTest.php b/tests/src/Kernel/StatusCheck/PhpExtensionsValidatorTest.php index 021194983571fd533728a8d461aa43dd35e467b1..edcbbc37902f570f360117feb973e5e45570aab9 100644 --- a/tests/src/Kernel/StatusCheck/PhpExtensionsValidatorTest.php +++ b/tests/src/Kernel/StatusCheck/PhpExtensionsValidatorTest.php @@ -37,7 +37,7 @@ class PhpExtensionsValidatorTest extends AutomaticUpdatesKernelTestBase { t('Xdebug is enabled, which may have a negative performance impact on Package Manager and any modules that use it.'), ]); $error_result = ValidationResult::createError([ - t("Xdebug is enabled, currently Cron Updates are not allowed while it is enabled. If Xdebug is not disabled you will not receive security and other updates during cron."), + t("Unattended updates are not allowed while Xdebug is enabled. You cannot receive updates, including security updates, until it is disabled."), ]); $config = $this->config('automatic_updates.settings'); @@ -88,7 +88,7 @@ class PhpExtensionsValidatorTest extends AutomaticUpdatesKernelTestBase { $this->container->get('cron')->run(); // The update should have been staged, but then stopped with an error. $this->assertUpdateStagedTimes(1); - $this->assertTrue($logger->hasRecordThatContains("Xdebug is enabled, currently Cron Updates are not allowed while it is enabled. If Xdebug is not disabled you will not receive security and other updates during cron.", RfcLogLevel::ERROR)); + $this->assertTrue($logger->hasRecordThatContains("Unattended updates are not allowed while Xdebug is enabled. You cannot receive updates, including security updates, until it is disabled.", RfcLogLevel::ERROR)); } /**