diff --git a/tests/drupal9.bats b/tests/drupal9.bats index 00b074b..6872e40 100644 --- a/tests/drupal9.bats +++ b/tests/drupal9.bats @@ -15,6 +15,11 @@ teardown() { for source in $PROJECT_SOURCE ddev/ddev-platformsh; do per_test_setup + ddev exec drush cr + + run curl -L -s http://${PROJNAME}.ddev.site/ + assert_output "this is a test of ddev-platformsh drupal9" + 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 }'" @@ -26,10 +31,11 @@ teardown() { run jq -r .raw.docroot relationships.json echo "# PLATFORM_RELATIONSHIPS=$(cat relationships.json)" >&3 + ddev exec 'echo $PLATFORM_ROUTES | base64 -d' >routes.json + echo "# PLATFORM_ROUTES=$(cat routes.json)" >&3 assert_equal "$(jq -r .database[0].type &3 @@ -14,7 +16,7 @@ per_test_setup() { echo "# doing ddev restart with template ${template} PROJNAME=${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 ddev restart >/dev/null if [ -f ${PROJECT_SOURCE}/tests/testdata/${template}/db.sql.gz ]; then - ddev import-db --src=${PROJECT_SOURCE}/tests/testdata/${template}/db.sql.gz + ddev import-db --file=${PROJECT_SOURCE}/tests/testdata/${template}/db.sql.gz fi } diff --git a/tests/testdata/drupal9/db.sql.gz b/tests/testdata/drupal9/db.sql.gz new file mode 100644 index 0000000..72822a1 Binary files /dev/null and b/tests/testdata/drupal9/db.sql.gz differ