Skip to content

[make:factory] Problems with --test flag #786

Open
@tomasnorre

Description

@tomasnorre

I'm honestly know sure, if I'm misunderstanding something, doing it wrong or it a bug.

Lets say I have the entity setup from documentation. https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#same-entities-used-in-these-docs

A post and a comment.

If I create factories with the bin/console make:factory --test Post flag it complains that the CommentFactory is not present and as if it should create it for me. If I said yes, it creates it's in the src/Factory directory even if I use the --test flag.

If it's already is created in tests/Facoty is still complains that it's not present as it looks for it in src/Factory/CommentFactory.php but when I answer yes to create if fails, as it's already created.

Is this something that I misunderstand from concept or is this a bug?

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmaker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions