File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/LiveComponent/tests/Functional/Form Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -296,10 +296,10 @@ public function testResetForm(): void
296296
297297 $ browser
298298 ->post ('/_components/form_with_many_different_fields_type/submitAndResetForm ' , [
299- 'body ' => json_encode ([
299+ 'body ' => [ ' data ' => json_encode ([
300300 'props ' => $ dehydratedProps ,
301301 'updated ' => ['form.textarea ' => 'short ' ],
302- ]),
302+ ])] ,
303303 'headers ' => ['X-CSRF-TOKEN ' => $ token ],
304304 ])
305305 ->assertStatus (200 )
@@ -309,7 +309,7 @@ public function testResetForm(): void
309309 // try resetting without submitting
310310 $ browser
311311 ->post ('/_components/form_with_many_different_fields_type/resetFormWithoutSubmitting ' , [
312- 'body ' => json_encode (['props ' => $ dehydratedProps ]),
312+ 'body ' => [ ' data ' => json_encode (['props ' => $ dehydratedProps ])] ,
313313 'headers ' => ['X-CSRF-TOKEN ' => $ token ],
314314 ])
315315 ->assertStatus (200 )
You can’t perform that action at this time.
0 commit comments