WouterJEloquentBundle icon indicating copy to clipboard operation
WouterJEloquentBundle copied to clipboard

Include more functional migrator tests

Open wouterj opened this issue 9 years ago • 2 comments

E.g. to catch errors like https://github.com/wouterj/WouterJEloquentBundle/pull/37

wouterj avatar Nov 09 '16 16:11 wouterj

I think this can be detected by having a functional test doing:

  • 1 migration to create a table => check the table existence
  • populate the table => check the number of persisted entities
  • reset the migration => check the table (non) existence

theofidry avatar Nov 09 '16 16:11 theofidry

At the moment (1) and (2) is already covered: https://github.com/wouterj/WouterJEloquentBundle/blob/master/tests/Functional/MigrationsTest.php

So we just need to extend this with (3).

wouterj avatar Nov 09 '16 17:11 wouterj