diff --git a/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php b/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php index 64ba5cde8e8..09d43801111 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php +++ b/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php @@ -326,7 +326,6 @@ class DatetimeFieldTest extends WebTestBase { $this->instance->save(); // Display creation form. - $date = new DrupalDateTime(); $this->drupalGet('entity_test/add'); // See that no date is set.