diff --git a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php index 7c829ab84aa5..09d866f2882c 100644 --- a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php +++ b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php @@ -292,7 +292,7 @@ class SiteConfigureForm extends ConfigFormBase { // Enable update.module if this option was selected. $update_status_module = $form_state->getValue('enable_update_status_module'); if (empty($install_state['config_install_path']) && $update_status_module) { - $this->moduleInstaller->install(['file', 'update'], FALSE); + $this->moduleInstaller->install(['update']); // Add the site maintenance account's email address to the list of // addresses to be notified when updates are available, if selected. diff --git a/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz b/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz index 85fd276e3723..31bb51305cff 100644 Binary files a/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz and b/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz differ diff --git a/core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php b/core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php new file mode 100644 index 000000000000..d18de97d5667 --- /dev/null +++ b/core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php @@ -0,0 +1,38 @@ +assertTrue( + \Drupal::moduleHandler()->moduleExists('update') && \Drupal::moduleHandler()->moduleExists('file') && \Drupal::moduleHandler()->moduleExists('field'), + 'The Update module and its dependencies are installed.' + ); + } + + /** + * {@inheritdoc} + */ + protected function installParameters() { + $params = parent::installParameters(); + $params['forms']['install_configure_form']['enable_update_status_module'] = TRUE; + return $params; + } + +}