Skip to content
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

Open
karser opened this issue Nov 25, 2019 · 0 comments
Open

Write functional tests #5

karser opened this issue Nov 25, 2019 · 0 comments

Comments

@karser
Copy link
Contributor

karser commented Nov 25, 2019

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 and doctrine: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant