From e4cfd82324d5297dc1e04039469be3ce752237e5 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 5 Aug 2020 15:50:53 +0200
Subject: [PATCH] composer/plugin/drupal-spoons#10 Add more arguments to the
 phpunit script in the resulting composer file

---
 src/Handler.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Handler.php b/src/Handler.php
index e78fba2..d0047da 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -158,7 +158,7 @@ class Handler {
         'lint' => 'parallel-lint --exclude web --exclude vendor .',
         'webserver' => 'cd web && php -S 0.0.0.0:8888 .ht.router.php',
         'chromedriver' => 'chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox',
-        'unit' => 'phpunit --verbose web/modules/custom',
+        'unit' => 'SIMPLETEST_DB=mysql://root:password@mariadb/db SIMPLETEST_BASE_URL=http://0.0.0.0:8888 vendor/bin/phpunit --bootstrap web/core/tests/bootstrap.php web/modules/custom',
         'phpstan' => 'phpstan analyse web/modules/custom',
         'stylelint' => 'yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json ../modules/custom/**/*.css',
         'eslint' => 'yarn --silent --cwd web/core eslint -c ./.eslintrc.json ../modules/custom',
-- 
GitLab