File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function testOnSubmitDoNothing()
63
63
$ submittedData = ['test ' ];
64
64
$ event = new FormEvent ($ this ->getForm (), $ submittedData );
65
65
66
- $ this ->dispatcher ->dispatch (FormEvents::SUBMIT , $ event );
66
+ $ this ->dispatcher ->dispatch ($ event , FormEvents::SUBMIT );
67
67
68
68
$ this ->assertTrue ($ this ->collection ->contains ('test ' ));
69
69
$ this ->assertSame (1 , $ this ->collection ->count ());
@@ -74,7 +74,7 @@ public function testOnSubmitNullClearCollection()
74
74
$ submittedData = [];
75
75
$ event = new FormEvent ($ this ->getForm (), $ submittedData );
76
76
77
- $ this ->dispatcher ->dispatch (FormEvents::SUBMIT , $ event );
77
+ $ this ->dispatcher ->dispatch ($ event , FormEvents::SUBMIT );
78
78
79
79
$ this ->assertTrue ($ this ->collection ->isEmpty ());
80
80
}
You can’t perform that action at this time.
0 commit comments