File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/localgov_forms_date/tests/src/Kernel Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ protected function passCase(): void {
3434 $ form_state ->setValue ('date ' ,
3535 ['day ' => '1 ' , 'month ' => '1 ' , 'year ' => '1 ' ]);
3636 $ form_state ->setValue ('op ' , 'Submission ' );
37+ $ form_state ->setValue ('submit ' , 'Submit ' );
3738
38- $ this ->container ->get ('form_builder ' )->submitForm (clone ($ this ->testForm ), $ form_state );
39+ $ test_form = clone ($ this ->testForm );
40+ $ this ->container ->get ('form_builder ' )->submitForm ($ test_form , $ form_state );
3941 $ this ->assertEmpty ($ form_state ->getErrors ());
4042 }
4143
@@ -89,12 +91,10 @@ protected function setUp(): void {
8991
9092 $ this ->installEntitySchema ('user ' );
9193 $ this ->installEntitySchema ('path_alias ' );
92-
9394 $ this ->installSchema ('webform ' , ['webform ' ]);
94-
9595 $ this ->installConfig ('system ' );
96+ $ this ->installConfig ('webform ' );
9697 $ this ->installConfig ('localgov_forms_date_test ' );
97-
9898 $ this ->installConfig ('localgov_forms_date ' );
9999
100100 $ empty_submission = WebformSubmission::create (['webform_id ' => 'date_test ' ]);
You can’t perform that action at this time.
0 commit comments