Mar 3, 2022
8
Level 3
Is there a way to clone dev db data to test db?
I am just now starting to learn about testing
At first I ran php artisan test and it showed me that I am missing the test database so I simply created an empty db.
Then the tests started running and I saw that the test database have the same tables as the app's database.
Was what I did correct? i.e to create an empty database and then let php artisan test create the app's db.
And, is there a simple way to copy the current development database data and use it? Or I have to manually insert dummy data now?
Or I can somehow use the dev db instead (And should I?)
Please or to participate in this conversation.