Skip to content

Commit

Permalink
Add config cache clearing before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Oct 29, 2024
1 parent 59db486 commit 172e945
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 172e945

Please sign in to comment.