Skip to content

Commit

Permalink
chore: default to d11 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Oct 24, 2024
1 parent 0d6ff4a commit f415e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/_common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _common_setup() {
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
cp -R ${DIR}/tests/testdata/test_drupal_contrib/* ${TESTDIR}
cd ${TESTDIR}
ddev config --project-name=${PROJNAME} --project-type=drupal --docroot=web
ddev config --project-name=${PROJNAME} --project-type=drupal --docroot=web --php-version=8.3
if [ -n "$TEST_DRUPAL_CORE" ] && [ "$TEST_DRUPAL_CORE" != "default" ]; then
echo -e "web_environment:\n - DRUPAL_CORE=^${TEST_DRUPAL_CORE}" > .ddev/config.~overrides.yaml
fi
Expand Down
6 changes: 3 additions & 3 deletions tests/full.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ setup_file() {
fi
load '_common.bash'
_common_setup
ddev config --php-version=8.2
if [ "$TEST_DRUPAL_CORE" = "11" ]; then
ddev config --php-version=8.3 --corepack-enable
if [ "$TEST_DRUPAL_CORE" = "10" ]; then
# Test D10 with older PHP version and corepack-disabled
ddev config --php-version=8.2 --corepack-enable=false
fi
ddev start
}
Expand Down

0 comments on commit f415e3b

Please sign in to comment.