Skip to content

Commit d29df00

Browse files
committed
Fixing test
1 parent 380b492 commit d29df00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveComponent/tests/Functional/Form/ComponentWithFormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)