@@ -54,12 +54,12 @@ public function testHandleCheckboxChanges(): void
54
54
'choice_multiple ' => ['2 ' ],
55
55
'checkbox_checked ' => '1 ' ,
56
56
'file ' => '' ,
57
- 'hidden ' => ''
57
+ 'hidden ' => '' ,
58
58
];
59
59
$ fullBareData = array_merge (
60
60
$ bareForm ,
61
61
[
62
- 'checkbox ' => null
62
+ 'checkbox ' => null ,
63
63
]
64
64
);
65
65
@@ -71,7 +71,7 @@ public function testHandleCheckboxChanges(): void
71
71
->assertContains ('<input type="checkbox" id="form_choice_multiple_0" name="form[choice_multiple][]" value="1" /> ' )
72
72
->assertContains ('<input type="checkbox" id="form_checkbox" name="form[checkbox]" required="required" value="1" /> ' )
73
73
->assertContains ('<input type="checkbox" id="form_checkbox_checked" name="form[checkbox_checked]" required="required" value="1" checked="checked" /> ' )
74
- ->use (function (HtmlResponse $ response ) use (&$ fullBareData , &$ dehydrated , &$ bareForm ) {
74
+ ->use (function (HtmlResponse $ response ) use (&$ fullBareData , &$ dehydrated , &$ bareForm ) {
75
75
$ data = json_decode (
76
76
$ response ->crawler ()->filter ('div ' )->first ()->attr ('data-live-data-value ' ),
77
77
true
@@ -86,7 +86,7 @@ public function testHandleCheckboxChanges(): void
86
86
->get ('/_components/form_component1? ' .http_build_query ($ dehydrated ))
87
87
->assertContains ('<input type="checkbox" id="form_choice_multiple_1" name="form[choice_multiple][]" value="2" checked="checked" /> ' )
88
88
->assertContains ('<input type="checkbox" id="form_choice_multiple_0" name="form[choice_multiple][]" value="1" checked="checked" /> ' )
89
- ->use (function (HtmlResponse $ response ) use (&$ fullBareData , &$ dehydrated , &$ bareForm ) {
89
+ ->use (function (HtmlResponse $ response ) use (&$ fullBareData , &$ dehydrated , &$ bareForm ) {
90
90
$ data = json_decode (
91
91
$ response ->crawler ()->filter ('div ' )->first ()->attr ('data-live-data-value ' ),
92
92
true
@@ -108,7 +108,7 @@ public function testHandleCheckboxChanges(): void
108
108
->assertContains ('<input type="checkbox" id="form_choice_multiple_0" name="form[choice_multiple][]" value="1" /> ' )
109
109
->assertContains ('<input type="checkbox" id="form_checkbox" name="form[checkbox]" required="required" value="1" checked="checked" /> ' )
110
110
->assertContains ('<input type="checkbox" id="form_checkbox_checked" name="form[checkbox_checked]" required="required" value="1" /> ' )
111
- ->use (function (HtmlResponse $ response ) use ($ fullBareData ) {
111
+ ->use (function (HtmlResponse $ response ) use ($ fullBareData ) {
112
112
$ data = json_decode (
113
113
$ response ->crawler ()->filter ('div ' )->first ()->attr ('data-live-data-value ' ),
114
114
true
0 commit comments