forked from ddev/ddev-platformsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.