Skip to content

Commit

Permalink
Improve bats tests installing drupal
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Sep 26, 2024
1 parent 2f1bd0d commit d3d6cb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backstopjsFiles/local/backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scenarios": [
{
"label": "Homepage",
"url": "http://web/",
"url": "https://web/",
"selectorExpansion": true,
"readySelector": "body",
"misMatchThreshold" : 0.1
Expand Down
9 changes: 6 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ setup() {
export DDEV_NON_INTERACTIVE=true
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
cd "${TESTDIR}"
ddev config --project-name=${PROJNAME}


ddev config --project-name=${PROJNAME} --project-type=php
ddev start -y >/dev/null
ddev composer create drupal/recommended-project:^10 -y
ddev composer require --dev drush/drush:^12.0
ddev config --project-name=${PROJNAME} --project-type=drupal
ddev restart -y >/dev/null
ddev drush site:install --account-name=admin --account-pass=admin -y
}

teardown() {
Expand Down

0 comments on commit d3d6cb5

Please sign in to comment.