File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,28 @@ public function testSendCreate()
3737 $ this ->assertDomHas ($ dom , 'input[name="m[2][bar]"] ' );
3838 }
3939
40+ public function testSendCreateWithoutButton ()
41+ {
42+ $ this ->markTestIncomplete ("New containers are added even without a button " );
43+
44+ $ response = $ this ->services ->form ->createRequest (
45+ MultiplierBuilder::create ()
46+ ->createForm ()
47+ )->setPost ([
48+ 'm ' => [
49+ ['bar ' => '' ],
50+ ['bar ' => '' ],
51+ 'multiplier_creator ' => '' ,
52+ ],
53+ ])->send ();
54+
55+ $ dom = $ response ->toDomQuery ();
56+
57+ $ this ->assertDomHas ($ dom , 'input[name="m[0][bar]"] ' );
58+ $ this ->assertDomHas ($ dom , 'input[name="m[1][bar]"] ' );
59+ $ this ->assertDomNotHas ($ dom , 'input[name="m[2][bar]"] ' );
60+ }
61+
4062 public function testSendCreateOverMaxCopies ()
4163 {
4264 $ response = $ this ->services ->form ->createRequest (
You can’t perform that action at this time.
0 commit comments