diff --git a/src/Handler.php b/src/Handler.php
index e78fba2dd28e61e9c4a62f10ccb1eb26a7c23503..d0047da6e9e8da28867bd7ad27c1c626e8bada11 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',