Skip to content

Commit 9fb715d

Browse files
weitzmanstasadev
authored andcommitted
Remove -v option to phpunit. Add a composer.json
1 parent 69aead1 commit 9fb715d

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

composer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "ddev/ddev-selenium-standalone-chrome",
3+
"conflict": {
4+
"drupal/core": "< 11.1"
5+
},
6+
"require-dev": {
7+
"drupal/core-dev": "^11.1",
8+
"drupal/core-composer-scaffold": "^11.1",
9+
"drupal/core-recommended": "^11.1",
10+
"composer/installers": "^2"
11+
},
12+
"extra": {
13+
"installer-paths": {
14+
"web/core": ["type:drupal-core"],
15+
"web/libraries/{$name}": ["type:drupal-library"],
16+
"web/modules/unish/{$name}": ["drupal/devel"],
17+
"web/themes/unish/{$name}": ["drupal/empty_theme"],
18+
"web/modules/contrib/{$name}": ["type:drupal-module"],
19+
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
20+
"web/themes/contrib/{$name}": ["type:drupal-theme"]
21+
}
22+
},
23+
"config": {
24+
"allow-plugins": {
25+
"composer/installers": true,
26+
"dealerdirect/phpcodesniffer-composer-installer": true,
27+
"drupal/core-composer-scaffold": true,
28+
"drupal/core-project-message": true,
29+
"php-http/discovery": true,
30+
"phpstan/extension-installer": true,
31+
"tbachert/spi": true
32+
}
33+
}
34+
}

tests/test.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ setup() {
3535

3636
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:^11' 'drush/drush:^13' '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

4040
run ddev config --project-name=${PROJNAME} --project-tld=ddev.site --php-version=8.3 --web-environment-add=SYMFONY_DEPRECATIONS_HELPER=disabled
4141
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

0 commit comments

Comments
 (0)