Skip to content

Commit

Permalink
Add drupal8 test, for ddev#22
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Oct 8, 2022
1 parent cdfe27b commit fcd4376
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/drupal8.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Requires bats-assert and bats-support
# brew tap kaos/shell &&
# brew install bats-core bats-assert bats-support jq mkcert yq
setup() {
load setup.sh
}

teardown() {
load teardown.sh
}

@test "drupal8" {
load per_test.sh
template="drupal8"
for source in $PROJECT_SOURCE platformsh/ddev-platformsh; do
echo "# ddev get $source with template ${template} PROJNAME=${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
per_test_setup

run ddev exec -s db 'echo ${DDEV_DATABASE}'
assert_output "mariadb:10.4"
run ddev exec "php --version | awk 'NR==1 { sub(/\.[0-9]+$/, \"\", \$2); print \$2 }'"
assert_output "7.4"
ddev describe -j >describe.json
run jq -r .raw.docroot <describe.json
assert_output "web"

docker inspect ddev-${PROJNAME}-redis >/dev/null
per_test_teardown
done
}
File renamed without changes.

0 comments on commit fcd4376

Please sign in to comment.