Skip to content

[make:crud][Test] Create and Flush EntityManager when all entities are removed ? #1377

@HiroKX

Description

@HiroKX

When generating the test associated with a controller, the setUp method doesn't create an instance of the EntityManager and doesn't flush after removing all the entities in the manager.

Is this expected behavior, or should we address it?

What we have now :
image

How i fixed it :
image

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