Skip to content
Snippets Groups Projects
Commit efddc2c8 authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3387610 by tedbow: Kernel tests fail if a core module gets a new update function

parent abba34d8
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,14 @@ abstract class PackageManagerKernelTestBase extends KernelTestBase {
->addLogger($this->failureLogger);
}
/**
* {@inheritdoc}
*/
protected function enableModules(array $modules) {
parent::enableModules($modules);
$this->registerPostUpdateFunctions();
}
/**
* {@inheritdoc}
*/
......@@ -243,8 +251,9 @@ abstract class PackageManagerKernelTestBase extends KernelTestBase {
* up-to-date state.
*/
protected function registerPostUpdateFunctions(): void {
$updates = $this->container->get('update.post_update_registry')
->getPendingUpdateFunctions();
static $updates = [];
$updates = array_merge($updates, $this->container->get('update.post_update_registry')
->getPendingUpdateFunctions());
$this->container->get('keyvalue')
->get('post_update')
......
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