Issue #3103529 by mcdruid, alexpott, Chris Burge, greg.1.anderson, rfay, anavarre, Gábor Hojtsy: Drupal 8.8.1+ and 9 can fail to install in the web browser due to cache pollution
parent
fd8c922277
commit
8a23417a43
|
@ -618,6 +618,12 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
|
|||
// Retrieve enabled modules and register their namespaces.
|
||||
if (!isset($this->moduleList)) {
|
||||
$extensions = $this->getConfigStorage()->read('core.extension');
|
||||
// If core.extension configuration does not exist then the container
|
||||
// cannot be dumped because Drupal is yet to be installed.
|
||||
if ($extensions === FALSE) {
|
||||
$this->allowDumping = FALSE;
|
||||
$this->containerNeedsDumping = FALSE;
|
||||
}
|
||||
$this->moduleList = isset($extensions['module']) ? $extensions['module'] : [];
|
||||
}
|
||||
$module_filenames = $this->getModuleFileNames();
|
||||
|
|
|
@ -54,6 +54,15 @@ class InstallerExistingSettingsTest extends InstallerTestBase {
|
|||
mkdir($this->settings['settings']['config_sync_directory']->value, 0777, TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits the interactive installer.
|
||||
*/
|
||||
protected function visitInstaller() {
|
||||
// Should redirect to the installer.
|
||||
$this->drupalGet($GLOBALS['base_url']);
|
||||
$this->assertSession()->addressEquals($GLOBALS['base_url'] . '/core/install.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue