diff --git a/tests/src/Functional/Installer/ThunderInstallerTest.php b/tests/src/Functional/Installer/ThunderInstallerTest.php index c953cd4a4..e839c9e06 100644 --- a/tests/src/Functional/Installer/ThunderInstallerTest.php +++ b/tests/src/Functional/Installer/ThunderInstallerTest.php @@ -41,30 +41,31 @@ protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } - /** - * Final installer step: Configure site. - */ - protected function setUpSite(): void { - $edit = $this->translatePostValues($this->parameters['forms']['install_configure_form']); - $edit['enable_update_status_module'] = FALSE; - $edit['enable_update_status_emails'] = FALSE; - $this->submitForm($edit, $this->translations['Save and continue']); - dump($this->getSession()->getPage()->getContent()); - // If we've got to this point the site is installed using the regular - // installation workflow. - $this->setUpModules(); - } - - /** - * Setup modules -> subroutine of test setUp process. - */ - protected function setUpModules(): void { - // @todo Add another test that tests interactive install of all optional - // Thunder modules. - $this->submitForm([], $this->translations['Save and continue']); - dump($this->getSession()->getPage()->getContent()); - $this->isInstalled = TRUE; - } +// /** +// * Final installer step: Configure site. +// */ +// protected function setUpSite(): void { +// $edit = $this->translatePostValues($this->parameters['forms']['install_configure_form']); +// $edit['enable_update_status_module'] = FALSE; +// $edit['enable_update_status_emails'] = FALSE; +// $this->submitForm($edit, $this->translations['Save and continue']); +// dump($this->getSession()->getPage()->getContent()); +// // If we've got to this point the site is installed using the regular +// // installation workflow. +// //$this->setUpModules(); +// $this->isInstalled = TRUE; +// } +// +// /** +// * Setup modules -> subroutine of test setUp process. +// */ +// protected function setUpModules(): void { +// // @todo Add another test that tests interactive install of all optional +// // Thunder modules. +// $this->submitForm([], $this->translations['Save and continue']); +// dump($this->getSession()->getPage()->getContent()); +// $this->isInstalled = TRUE; +// } /** * Confirms that the installation succeeded. diff --git a/thunder.profile b/thunder.profile index ef5aa6654..e75db3515 100644 --- a/thunder.profile +++ b/thunder.profile @@ -22,28 +22,28 @@ function thunder_form_install_configure_form_alter(array &$form, FormStateInterf $form['site_information']['site_name']['#placeholder'] = t('Thunder'); } -/** - * Implements hook_install_tasks(). - */ -function thunder_install_tasks(array &$install_state): array { - $tasks = []; - if (empty($install_state['config_install_path'])) { - $tasks['thunder_module_configure_form'] = [ - 'display_name' => t('Configure additional modules'), - 'type' => 'form', - 'function' => ModuleConfigureForm::class, - ]; - $tasks['thunder_module_install'] = [ - 'display_name' => t('Install additional modules'), - 'type' => 'batch', - 'run' => empty($install_state['thunder_install_batch']) ? INSTALL_TASK_SKIP : INSTALL_TASK_RUN_IF_NOT_COMPLETED, - ]; - } - $tasks['thunder_finish_installation'] = [ - 'display_name' => t('Finish installation'), - ]; - return $tasks; -} +///** +// * Implements hook_install_tasks(). +// */ +//function thunder_install_tasks(array &$install_state): array { +// $tasks = []; +// if (empty($install_state['config_install_path'])) { +// $tasks['thunder_module_configure_form'] = [ +// 'display_name' => t('Configure additional modules'), +// 'type' => 'form', +// 'function' => ModuleConfigureForm::class, +// ]; +// $tasks['thunder_module_install'] = [ +// 'display_name' => t('Install additional modules'), +// 'type' => 'batch', +// 'run' => empty($install_state['thunder_install_batch']) ? INSTALL_TASK_SKIP : INSTALL_TASK_RUN_IF_NOT_COMPLETED, +// ]; +// } +// $tasks['thunder_finish_installation'] = [ +// 'display_name' => t('Finish installation'), +// ]; +// return $tasks; +//} /** * Installs the thunder modules in a batch.