Skip to content

Commit 2ef5210

Browse files
authored
Start testing with Drupal 11 instead of 10 (#68)
* Start testing with Drupal 11 instead of 10 * Bump php version * Nu -v option for phpunit * No --printer
1 parent 7729b3d commit 2ef5210

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test.bats

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ setup() {
3333
ddev delete -Oy "${PROJNAME}" >/dev/null 2>&1 || true
3434
cd "${TESTDIR}"
3535

36-
composer -n --no-install create-project 'drupal/recommended-project:^10' .
36+
composer -n --no-install create-project 'drupal/recommended-project:^11' .
3737
composer -n config --no-plugins allow-plugins true
38-
composer -n require 'drupal/core-dev:^10' 'drush/drush:^12' 'phpspec/prophecy-phpunit:^2' 'weitzman/drupal-test-traits:^2'
38+
composer -n require 'drupal/core-dev:^11' 'drush/drush:^13' 'weitzman/drupal-test-traits:^2'
3939

40-
run ddev config --project-name=${PROJNAME} --project-tld=ddev.site --php-version=8.1 --web-environment-add=SYMFONY_DEPRECATIONS_HELPER=disabled
40+
run ddev config --project-name=${PROJNAME} --project-tld=ddev.site --php-version=8.4 --web-environment-add=SYMFONY_DEPRECATIONS_HELPER=disabled
4141
assert_success
4242
run ddev start -y
4343
assert_success
@@ -54,11 +54,11 @@ health_checks() {
5454

5555
echo "Run a FunctionalJavascript test." >&3
5656

57-
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit -v -c ./core/phpunit.xml.dist ./core/modules/system/tests/src/FunctionalJavascript/FrameworkTest.php"
57+
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit -c ./core/phpunit.xml.dist ./core/modules/system/tests/src/FunctionalJavascript/FrameworkTest.php"
5858
assert_success
5959

6060
echo "Ensure file uploads from browser works." >&3
61-
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit -v -c ./core/phpunit.xml.dist ./core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php"
61+
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit -c ./core/phpunit.xml.dist ./core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php"
6262
assert_success
6363

6464
echo "Run a Nightwatch test." >&3
@@ -82,7 +82,7 @@ health_checks() {
8282
run ddev exec -d /var/www/html/web "../vendor/bin/drush si -y --account-name=admin --account-pass=password standard"
8383
assert_success
8484

85-
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit --log-junit dtt.junit.xml --bootstrap=../vendor/weitzman/drupal-test-traits/src/bootstrap-fast.php --printer '\Drupal\Tests\Listeners\HtmlOutputPrinter' ../vendor/weitzman/drupal-test-traits/tests/ExampleSelenium2DriverTest.php"
85+
run ddev exec -d /var/www/html/web "../vendor/bin/phpunit --log-junit dtt.junit.xml --bootstrap=../vendor/weitzman/drupal-test-traits/src/bootstrap-fast.php ../vendor/weitzman/drupal-test-traits/tests/ExampleSelenium2DriverTest.php"
8686
assert_success
8787
}
8888

0 commit comments

Comments
 (0)