lundi 7 mai 2018

Symfony 4 - How to run Doctrine migrations before test?

I know that there are a lot of similar questions (Codeception & Symfony - run Doctrine migrations before tests) but do I really need to run migrations in tests like exec(...) or there is a better way for doing that?

Another thing: when I try to run migrations for sqlite db i get an error message: Migration can only be executed safely on mysql

Aucun commentaire:

Enregistrer un commentaire