diff --git a/composer.json b/composer.json index cee8952..a38e2d2 100644 --- a/composer.json +++ b/composer.json @@ -85,7 +85,7 @@ "rector", "ecs --fix || ecs --fix" ], - "test": "pest" + "test": "pest --parallel" }, "conflict": { "symfony/symfony": "*" diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e717c59..c79f857 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,6 +6,8 @@ require dirname(__DIR__) . '/vendor/autoload.php'; if (method_exists(Dotenv::class, 'bootEnv')) { (new Dotenv)->bootEnv(dirname(__DIR__) . '/.env'); + $token = $_SERVER['TEST_TOKEN'] ?? ''; + $_ENV['DATABASE_URL'] .= $token; } if ($_SERVER['APP_DEBUG']) {