Skip to content
Snippets Groups Projects

Issue #3252126: Detect DB updates and do not apply a update via cron if there is a DB update

Merged Issue #3252126: Detect DB updates and do not apply a update via cron if there is a DB update
All threads resolved!
All threads resolved!
3 files
+ 144
32
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -2,7 +2,6 @@
namespace Drupal\Tests\automatic_updates\Kernel\ReadinessValidation;
use Drupal\automatic_updates\Updater;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\package_manager\Event\PreApplyEvent;
use Drupal\package_manager\Exception\StageValidationException;
@@ -27,16 +26,6 @@ class StagedProjectsValidatorTest extends AutomaticUpdatesKernelTestBase {
'package_manager_bypass',
];
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
parent::register($container);
$container->getDefinition('automatic_updates.updater')
->setClass(TestUpdater::class);
}
/**
* {@inheritdoc}
*/
@@ -225,24 +214,3 @@ class StagedProjectsValidatorTest extends AutomaticUpdatesKernelTestBase {
}
}
/**
* A test-only version of the updater.
*/
class TestUpdater extends Updater {
/**
* The directory where staging areas will be created.
*
* @var string
*/
public static $stagingRoot;
/**
* {@inheritdoc}
*/
protected static function getStagingRoot(): string {
return static::$stagingRoot ?: parent::getStagingRoot();
}
}
Loading