amirghasempoor's avatar

RefreshDataBase trait not working for some tests

4 tests of my 128 tests persist data to the database and refreshDataBase not working for them in laravel testing and my test db is local mysql and not sqlite in memory how can i fix the problem?

0 likes
2 replies
amirghasempoor's avatar

i solved the problem, the project was on laravel5.8 and i upgrade it to version 10 the transactions and rollbacks and commits were purely wrote. i change them to DB::transaction and it works because of implicit commit issue in mysql

Please or to participate in this conversation.