@@ -17,7 +17,7 @@ class DateWebformElementTest extends KernelTestBase {
1717 /**
1818 * Tests a webform with our date field.
1919 */
20- public function testFormSubmission () {
20+ public function testFormSubmission (): void {
2121
2222 $ this ->passCase ();
2323 $ this ->failCaseWithInvalidDay ();
@@ -28,7 +28,7 @@ public function testFormSubmission() {
2828 /**
2929 * Tests valid date.
3030 */
31- protected function passCase () {
31+ protected function passCase (): void {
3232
3333 $ form_state = new FormState ();
3434 $ form_state ->setValue ('date ' ,
@@ -42,7 +42,7 @@ protected function passCase() {
4242 /**
4343 * Tests date with invalid day.
4444 */
45- protected function failCaseWithInvalidDay () {
45+ protected function failCaseWithInvalidDay (): void {
4646
4747 $ form_state = new FormState ();
4848 $ form_state ->setValue ('date ' , ['day ' => '1D ' ]);
@@ -55,7 +55,7 @@ protected function failCaseWithInvalidDay() {
5555 /**
5656 * Tests date with nonnumeric day.
5757 */
58- protected function failCaseWithNonNumericDay () {
58+ protected function failCaseWithNonNumericDay (): void {
5959
6060 $ form_state = new FormState ();
6161 $ form_state ->setValue ('date ' ,
@@ -69,7 +69,7 @@ protected function failCaseWithNonNumericDay() {
6969 /**
7070 * Tests date with invalid year.
7171 */
72- protected function failCaseWithInvalidYear () {
72+ protected function failCaseWithInvalidYear (): void {
7373
7474 $ form_state = new FormState ();
7575 $ form_state ->setValue ('date ' ,
@@ -83,7 +83,7 @@ protected function failCaseWithInvalidYear() {
8383 /**
8484 * {@inheritdoc}
8585 */
86- protected function setUp () : void {
86+ protected function setUp (): void {
8787
8888 parent ::setUp ();
8989
0 commit comments