if ($modules_installed ||
$modules_uninstalled) { // Note that resetAll() does not reset the kernel module list so we
// have to do that manually.
$this->kernel->
updateModules($module_handler_list,
$module_handler_list);
} // Close any open database connections. This allows DB drivers that store
// static information to refresh it in the update runner.
// @todo https://drupal.org/i/3222121 consider doing this in
// \Drupal\Core\DrupalKernel::initializeContainer() for container
// rebuilds.
foreach (Database::
getAllConnectionInfo() as $key =>
$info) { Database::
closeConnection(NULL,
$key);
} // If we have successfully clicked 'Apply pending updates' then we need to
// clear the caches in the update test runner as this has occurred as part
// of the updates.
$this->
resetAll();
// The config schema can be incorrect while the update functions are being
// executed. But once the update has been completed, it needs to be valid
// again. Assert the schema of all configuration objects now.