From 172e945f3f74ce0180ee3dc6eb020564edc41354 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:11:12 +0100 Subject: [PATCH] Add config cache clearing before tests --- .env.testing | 2 ++ composer.json | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.env.testing b/.env.testing index 65dcbf07b..86b3b38f2 100644 --- a/.env.testing +++ b/.env.testing @@ -4,6 +4,8 @@ APP_KEY=base64:pdjaSqs7dDu8SdYCQzsayBAqeMC+85fmo3bpeBCCT94= APP_DEBUG=true APP_URL=http://localhost +CACHE_STORE=array + WEBAUTHN_NAME=TestApp WEBAUTHN_ID=null WEBAUTHN_USER_VERIFICATION=discouraged diff --git a/composer.json b/composer.json index 056910386..e2354fa68 100644 --- a/composer.json +++ b/composer.json @@ -98,16 +98,24 @@ ], "test": [ "php artisan config:clear", - "php artisan test --parallel" + "vendor/bin/phpunit", + "php artisan config:clear" + ], + "test-para": [ + "php artisan config:clear", + "php artisan test --parallel", + "php artisan config:clear" ], "test-mysql": [ "php artisan config:clear", - "vendor/bin/phpunit -c phpunit-mysql.xml" + "vendor/bin/phpunit -c phpunit-mysql.xml", + "php artisan config:clear" ], "test-coverage-html": [ "@putenv XDEBUG_MODE=coverage", "php artisan config:clear", - "vendor/bin/phpunit --coverage-html tests/Coverage/" + "vendor/bin/phpunit --coverage-html tests/Coverage/", + "php artisan config:clear" ], "ide-helper": [ "php artisan config:clear",