Skip to content

[TwigComponents] Provide example of how to write a test #860

Closed
@tacman

Description

@tacman

Is there an example of how to test a component?

That is, a functional test? Unit test? I assume it'll be something like inject twig, create a twig snippet, then render? Or is there a way to invoke the component class directly?

An example with the simple AlertComponent would be helpful.

Thanks.

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