Skip to content

Commit 6c361f8

Browse files
authored
Test with Drupal 10 (ddev#40)
* Test with Drupal 10 * Test against stable drupal-test-traits
1 parent 590a50f commit 6c361f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test.bats

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ setup() {
77
export DDEV_NON_INTERACTIVE=true
88
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
99
cd "${TESTDIR}"
10-
composer -n --no-install create-project 'drupal/recommended-project:^9' .
10+
composer -n --no-install create-project 'drupal/recommended-project:^10' .
1111
composer -n config --no-plugins allow-plugins true
12-
composer -n require 'drupal/core-dev:^9' 'drush/drush:^11' 'phpspec/prophecy-phpunit:^2' 'weitzman/drupal-test-traits:2.0.0-rc1'
12+
composer -n require 'drupal/core-dev:^10' 'drush/drush:^12' 'phpspec/prophecy-phpunit:^2' 'weitzman/drupal-test-traits:^2'
1313
ddev config --project-name=${PROJNAME} --php-version=8.1 --web-environment-add SYMFONY_DEPRECATIONS_HELPER=disabled
1414
ddev start -y >/dev/null
1515
}
@@ -34,7 +34,7 @@ teardown() {
3434
echo "Run a Nightwatch test." >&3
3535
ddev exec -d /var/www/html/web/core yarn install
3636
ddev exec -d /var/www/html/web/core touch .env
37-
ddev exec -d /var/www/html/web/core yarn test:nightwatch tests/Drupal/Nightwatch/Tests/exampleTest.js
37+
ddev exec -d /var/www/html/web/core yarn test:nightwatch tests/Drupal/Nightwatch/Tests/jsOnceTest.js
3838
echo "Run a Nightwatch test that logs into Drupal." >&3
3939
ddev exec -d /var/www/html/web/core yarn test:nightwatch tests/Drupal/Nightwatch/Tests/loginTest.js
4040
echo "Install Drupal and run a DTT test." >&3

0 commit comments

Comments
 (0)