Skip to content
Snippets Groups Projects
Commit 772c3292 authored by shalini_jha's avatar shalini_jha
Browse files

Fix testRangeValidate failure caused by newly added #required_error handling

parent 6469aec5
No related branches found
No related tags found
1 merge request!1976Issue #3269890: #date_year_range is not validated server-side
...@@ -265,7 +265,7 @@ public function testRangeValidate(): void { ...@@ -265,7 +265,7 @@ public function testRangeValidate(): void {
$formState->setValue(['range_datetime_element', 'date'], '2000-01-01'); $formState->setValue(['range_datetime_element', 'date'], '2000-01-01');
$formState->setValue(['range_datetime_element', 'time'], '10:10'); $formState->setValue(['range_datetime_element', 'time'], '10:10');
\Drupal::formBuilder()->submitForm($this, $formState); \Drupal::formBuilder()->submitForm($this, $formState);
$this->assertEmpty($formState->getErrors()); $this->assertEmpty($formState->getError($form['range_datetime_element']));
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment