Skip to content

Write functional testsΒ #5

Description

@karser

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://github.com/symfony/twig-bundle/blob/master/Tests/Functional/EmptyAppTest.php
https://github.com/symfony/webpack-encore-bundle/blob/master/tests/IntegrationTest.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions