Skip to content

Confusing docs about submitting forms in functional tests #9585

Closed
@javiereguiluz

Description

@javiereguiluz

In this page (https://symfony.com/doc/current/testing.html#forms) you can find this example:

$form = $buttonCrawlerNode->form(array(
    'name'              => 'Fabien',
    'my_form[subject]'  => 'Symfony rocks!',
));

Is the use of name instead of my_form[name] ... or the use of my_form[subject] instead of subject done on purpose? It's a bit confusing to me. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions