Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Confirm that regression test tests the regression
Browse files Browse the repository at this point in the history
  • Loading branch information
phenaproxima committed Aug 2, 2024
1 parent 336c10b commit e837679
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@
"drupal:install": [
"Composer\\Config::disableProcessTimeout",
"\\Drupal\\starshot_installer\\ScriptHandler::configureDrush",
"drush site:install --yes --account-pass admin --config drush-install.yml",
"rm -f drush-install.yml",
"drush webform-libraries-download"
"drush site:install --yes --account-pass admin --config drush-install.yml standard",
"rm -f drush-install.yml"
],
"drupal:install-dev": [
"cd web/sites/default && chmod +w . && rm -rf settings.php files",
Expand Down
2 changes: 1 addition & 1 deletion installer/src/Form/RecipesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function submitForm(array &$form, FormStateInterface $form_state): void {
$add_ons = array_filter($add_ons);

$install_state['parameters']['recipes'] = [
$form_state->getValue('template', 'starshot'),
$form_state->getValue('template'),
...array_values($add_ons),
];
}
Expand Down
9 changes: 0 additions & 9 deletions tests/src/ExistingSite/BasicExpectationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ class BasicExpectationsTest extends ExistingSiteBase {
* Tests basic expectations of a successful Starshot install.
*/
public function testBasicExpectations(): void {
$this->drupalGet('/');

$assert_session = $this->assertSession();
$assert_session->statusCodeEquals(200);
$assert_session->elementAttributeContains('css', 'meta[name="Generator"]', 'content', 'Drupal');

// The installation profile should not be installed.
$this->assertFalse($this->container->getParameter('install_profile'));

// Ensure that there are non-core extensions installed, which proves that
// recipes were applied during site installation.
$this->assertContribInstalled($this->container->get(ModuleExtensionList::class));
Expand Down

0 comments on commit e837679

Please sign in to comment.