Skip to content

Commit 5afd2e4

Browse files
authored
doc : update to keep minimal but clear comment and code
1 parent 853baaf commit 5afd2e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3732,11 +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
3736-
// 'form' is the name of the form you're submitting (here FormType).
3737-
// e.a : form submitted is EntityCreationType the name of your form would be 'entity_creation' and should replace 'form' in the below submitForm call
3735+
// Submit form data ('my_form' for your MyFormType form)
37383736
$testComponent
3739-
->submitForm(['form' => ['input' => 'value']], 'save');
3737+
->submitForm(['my_form' => ['input' => 'value']], 'save');
37403738

37413739
$this->assertStringContainsString('Count: 99', $testComponent->render());
37423740

0 commit comments

Comments
 (0)