Commit 7a2ff5f
fix: add force=\"true\" to phpunit.xml env vars to fix testing after Postgres migration
When `php artisan test` runs, artisan bootstraps Laravel first (loading
.env which sets DB_CONNECTION=pgsql, CACHE_STORE=database, etc. via
putenv()). PHPUnit then processes phpunit.xml, but <env> tags without
force=\"true\" don't override already-set environment variables. This
means all test-friendly settings (SQLite, array cache, array sessions,
sync queue, array mailer) were silently ignored, causing tests to fail
locally when no Postgres instance is running.
Adding force=\"true\" to all <env> tags ensures they properly override
the .env settings, so tests reliably use SQLite in-memory.
Co-authored-by: dotMavriQ <7146796+dotMavriQ@users.noreply.github.com>1 parent 06ce0de commit 7a2ff5f
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
0 commit comments