@blackbird Actually I was assuming we were talking about acceptance tests! See below...
@christophrumpel I may have jumped to conclusions here when I read "So after every test CC restores my DB from the dump I provide." I didn't read your post very well.
My understanding is that this was the usual setup for acceptance tests: use mysql, and provide a dump for Codeception to restore from. If you read the Codeception docs, that's what they suggest; and people here have had trouble trying to use another solution like migrating the database.
With functional tests, I thought the normal solution is either (a) migrate and seed a testing database (mysql or sqlite) or (b) use sqlite and restore from a file (which is about 15 times faster).
Where you are restoring from a file or a dump, you might need to update it occasionally. You can write an Artisan command to do this for you.
It seems there are several variations you can use. With functional tests (i.e. "database tests"), I would avoid using a mysql dump because I think it would slow down these tests excessively. With acceptance tests, which are pretty slow already especially in Webdriver, it's not much of an issue; and also this seems to be what Codeception expects you to do.