Level 102
Try
php artisan config:clear
Summer Sale! All accounts are 50% off this week.
How can I setup the enviroment for testing in my proyect, right now when I run my tests my db gets all deleted.
This is what I have rn:
.env, pasted it as .env.testing and only changed the DB_DATABASE variable to another empty db for testing.phpunit.xml I commented out the 24-25 lines and changed them as below<server name="DB_CONNECTION" value="mysql"/>
<server name="DB_DATABASE" value="auth_test"/>
I couldn't find much in the docs https://laravel.com/docs/8.x/testing#environment
And when I run php artisan test my db auth gets it's data deleted, what am I doing wrong so that laravel uses the other db when testing?
Please or to participate in this conversation.