diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index 5dd9bd1..afc5de7 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -112,6 +112,9 @@ final class BuildConfigurationCommand extends Command if (null === Arr::get($configurationData, 'drupal.docroot')) { Arr::set($configurationData, 'drupal.docroot', 'web'); } + + // Add a Drupal version of phpunit.xml.dist. + $this->filesToGenerate->push(['drupal-project/phpunit.xml.dist', 'phpunit.xml.dist']); } $this->generateFiles($configurationData); diff --git a/templates/drupal-project/phpunit.xml.dist.twig b/templates/drupal-project/phpunit.xml.dist.twig new file mode 100644 index 0000000..4f3a158 --- /dev/null +++ b/templates/drupal-project/phpunit.xml.dist.twig @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + ./{{ drupal.docroot }}/modules/custom/**/tests/**/Functional + + + ./{{ drupal.docroot }}/modules/custom/**/tests/**/Kernel + + + ./{{ drupal.docroot }}/modules/custom/**/tests/**/Unit + + +