Skip to content

Explain how to create the testing database #14586

@javiereguiluz

Description

@javiereguiluz

This article explains many things about testing + database -> https://symfony.com/doc/current/testing/database.html

But it's missing how to create the testing database. In a test bootstrap file we could for example run some Symfony console commands to create the database and load the fixtures.

Also, in the fixtures section of that article ... update the command to load them only in the test env.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestinghasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions