diff --git a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php index 7c829ab84aa5fde79b4177c2276624b3f0844118..09d866f2882cf2b48c538e75ec5cb7884646939e 100644 --- a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php +++ b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php @@ -292,7 +292,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { // 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/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php b/core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php new file mode 100644 index 0000000000000000000000000000000000000000..d18de97d566789ccf3e07fe943b318f357a5a381 --- /dev/null +++ b/core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php @@ -0,0 +1,38 @@ +<?php + +namespace Drupal\FunctionalTests\Installer; + +use Drupal\Tests\BrowserTestBase; + +/** + * Tests installing the Testing profile with update notifications on. + * + * @group Installer + */ +class TestingProfileInstallTest extends BrowserTestBase { + + /** + * {@inheritdoc} + */ + protected $profile = 'testing'; + + /** + * Ensure the Update module and its dependencies are installed. + */ + public function testUpdateModuleInstall() { + $this->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; + } + +}