-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write functional tests #5
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is critically important to implement tests which run migrations against real databases using doctrine migration.
The idea:
We probably need 2 sets of entities: first in based on integer id and second is based on uuid.
Then it launches the command
doctrine:schema:update --force
against the first set (so that we can launch it for both mysql and postgres).And then it launches the id-to-uuid migration. The success would be the command
doctrine:migration:migrate
doesn't fail anddoctrine:schema:validate
displays that the schema is in sync (against the second set).Examples of functional/integration tests:
https:/symfony/twig-bundle/blob/master/Tests/Functional/EmptyAppTest.php
https:/symfony/webpack-encore-bundle/blob/master/tests/IntegrationTest.php
The text was updated successfully, but these errors were encountered: