@@ -138,7 +138,7 @@ if [[ $test_filter = all || $test_filter = form ]]; then
138138
139139 dcg_phpcs --exclude=DrupalPractice.Yaml.RoutingAccess .
140140 dcg_module_install $module_machine_name
141- dcg_phpunit tests
141+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
142142 dcg_module_uninstall $module_machine_name
143143fi
144144
@@ -200,7 +200,7 @@ if [[ $test_filter = all || $test_filter = module_component ]]; then
200200
201201 dcg_phpcs .
202202 dcg_module_install $module_machine_name
203- dcg_phpunit tests
203+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
204204 dcg_module_uninstall $module_machine_name
205205fi
206206
@@ -242,7 +242,7 @@ if [[ $test_filter = all || $test_filter = plugin ]]; then
242242 dcg_module_install $module_machine_name
243243 echo ' Build CKEditor plugin...'
244244 npm install && npm run build
245- dcg_phpunit tests
245+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
246246 dcg_module_uninstall $module_machine_name
247247fi
248248
@@ -274,7 +274,7 @@ if [[ $test_filter = all || $test_filter = service ]]; then
274274
275275 dcg_phpcs $module_dir
276276 dcg_module_install $module_machine_name
277- dcg_phpunit tests
277+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
278278 # Do not uninstall this module as the uninstall validator prevents it.
279279fi
280280
@@ -299,7 +299,7 @@ if [[ $test_filter = all || $test_filter = yml ]]; then
299299
300300 dcg_phpcs $module_dir
301301 dcg_module_install $module_machine_name
302- dcg_phpunit tests
302+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
303303 dcg_module_uninstall $module_machine_name
304304fi
305305
@@ -321,7 +321,7 @@ if [[ $test_filter = all || $test_filter = test ]]; then
321321
322322 dcg_phpcs --exclude=Generic.CodeAnalysis.UselessOverridingMethod $module_dir
323323 dcg_module_install $module_machine_name
324- dcg_phpunit tests
324+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
325325 dcg_module_uninstall $module_machine_name
326326fi
327327
@@ -347,7 +347,7 @@ if [[ $test_filter = all || $test_filter = theme_component ]]; then
347347
348348 dcg_phpcs --exclude=Generic.CodeAnalysis.UselessOverridingMethod $module_dir
349349 dcg_module_install $module_machine_name
350- dcg_phpunit tests
350+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
351351 dcg_module_uninstall $module_machine_name
352352fi
353353
@@ -366,7 +366,7 @@ if [[ $test_filter = all || $test_filter = plugin_manager ]]; then
366366
367367 dcg_phpcs .
368368 dcg_module_install $module_machine_name
369- dcg_phpunit tests
369+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
370370 dcg_module_uninstall $module_machine_name
371371fi
372372
@@ -383,7 +383,7 @@ if [[ $test_filter = all || $test_filter = configuration_entity ]]; then
383383
384384 dcg_phpcs .
385385 dcg_module_install $module_machine_name
386- dcg_phpunit tests
386+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
387387 dcg_module_uninstall $module_machine_name
388388fi
389389
@@ -402,7 +402,7 @@ if [[ $test_filter = all || $test_filter = content_entity ]]; then
402402
403403 dcg_phpcs .
404404 dcg_module_install $module_machine_name
405- dcg_phpunit tests
405+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
406406 dcg_module_uninstall $module_machine_name
407407
408408 dcg_label ' Content entity (with fields)'
@@ -418,7 +418,7 @@ if [[ $test_filter = all || $test_filter = content_entity ]]; then
418418
419419 dcg_phpcs .
420420 dcg_module_install $module_machine_name
421- dcg_phpunit tests
421+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
422422 dcg_module_uninstall $module_machine_name
423423
424424 dcg_label ' Content entity (without bundles, fields and canonical page)'
@@ -434,7 +434,7 @@ if [[ $test_filter = all || $test_filter = content_entity ]]; then
434434
435435 dcg_phpcs .
436436 dcg_module_install $module_machine_name
437- dcg_phpunit tests
437+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
438438 dcg_module_uninstall $module_machine_name
439439fi
440440
@@ -450,7 +450,7 @@ if [[ $test_filter = all || $test_filter = bundle_class ]]; then
450450 $dcg entity:bundle-class -a acme -a Acme -a User -a UserBundle -a Yes -a UserBase
451451 dcg_phpcs $module_dir
452452 dcg_module_install $module_machine_name
453- dcg_phpunit tests
453+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
454454 dcg_module_uninstall $module_machine_name
455455fi
456456
@@ -464,11 +464,11 @@ if [[ $test_filter = all || $test_filter = module ]]; then
464464 cd $module_dir
465465
466466 $dcg module -d $drupal_dir /modules -a Peach -a peach -a ' Simple module generated by DCG.' \
467- -a DCG -a ' drupal:views, drupal:node, drupal:action ' -a Yes -a Yes -a Yes
467+ -a DCG -a ' drupal:views, drupal:node' -a Yes -a Yes -a Yes
468468
469469 dcg_phpcs $module_dir
470470 dcg_module_install $module_machine_name
471- dcg_phpunit tests
471+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
472472 dcg_module_uninstall $module_machine_name
473473fi
474474
@@ -491,7 +491,7 @@ if [[ $test_filter = all || $test_filter = theme ]]; then
491491 dcg_phpcs $theme_dir
492492 dcg_phpcs $module_dir
493493 dcg_module_install $module_machine_name
494- dcg_phpunit tests
494+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
495495 dcg_module_uninstall $module_machine_name
496496fi
497497
@@ -509,6 +509,6 @@ if [[ $test_filter = all || $test_filter = drush ]]; then
509509
510510 dcg_phpcs $module_dir
511511 dcg_module_install $module_machine_name
512- dcg_phpunit tests
512+ dcg_phpunit $drupal_dir /modules/ $module_machine_name / tests
513513 dcg_module_uninstall $module_machine_name
514514fi
0 commit comments