What isnt working? A specific model that uses the wrong connection ? Be aware that if you have set it manually on the model, it ignores phpunit.xml/env
When running phpunit natively /vendor/bin/phpunit then these variables are picked up. When i run php artisan test, it isn't I can see it's reading from my .env file?
Nope, no .env.testing file at all, I just figured I could use the phpunit.xml rather than having another .env file laying around. Like I said, PHPUnit itself picks up the database config but php artisan test just defaults to the .env which I found a little weird.