Skip to content
Snippets Groups Projects
Commit 876e0331 authored by Adam G-H's avatar Adam G-H
Browse files

Revert "See if we can not break all kernel tests"

This reverts commit cadf0e46.
parent cadf0e46
No related branches found
No related tags found
No related merge requests found
......@@ -14,15 +14,6 @@ use Drupal\package_manager\Exception\StageValidationException;
*/
class CronUpdater extends Updater {
/**
* Whether or not cron updates are hard-disabled.
*
* @var bool
*
* @todo Remove this when TUF integration is stable.
*/
private static $disabled = TRUE;
/**
* All automatic updates are disabled.
*
......@@ -149,7 +140,7 @@ class CronUpdater extends Updater {
* TRUE if cron updates are disabled, otherwise FALSE.
*/
private function isDisabled(): bool {
return self::$disabled ?: $this->configFactory->get('automatic_updates.settings')->get('cron') === static::DISABLED;
return $this->configFactory->get('automatic_updates.settings')->get('cron') === static::DISABLED;
}
}
......@@ -68,14 +68,6 @@ abstract class AutomaticUpdatesKernelTestBase extends PackageManagerKernelTestBa
// from a sane state.
// @see \Drupal\automatic_updates\Validator\CronFrequencyValidator
$this->container->get('state')->set('system.cron_last', time());
// @todo Remove this when TUF integration is stable.
if (class_exists(CronUpdater::class)) {
$reflector = new \ReflectionClass(CronUpdater::class);
$reflector = $reflector->getProperty('disabled');
$reflector->setAccessible(TRUE);
$reflector->setValue(NULL, FALSE);
}
}
/**
......
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