Skip to content

Commit 807d755

Browse files
yalitKocal
authored andcommitted
[LiveComponent] Update doc on how to use submitForm
1 parent 5adf780 commit 807d755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3732,9 +3732,9 @@ uses Symfony's test client to render and make requests to your components::
37323732
->set('count', 99)
37333733
;
37343734

3735-
// Submit form data
3735+
// Submit form data ('my_form' for your MyFormType form)
37363736
$testComponent
3737-
->submitForm(['form' => ['input' => 'value']], 'save');
3737+
->submitForm(['my_form' => ['input' => 'value']], 'save');
37383738

37393739
$this->assertStringContainsString('Count: 99', $testComponent->render());
37403740

0 commit comments

Comments
 (0)