You are here

public function TimezoneTest::testDatelistElementTimesUnderstoodCorrectly in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatelistElementTimesUnderstoodCorrectly()

Tests datelist elements interpret their times correctly when saving.

See testDatetimeElementTimesUnderstoodCorrectly() for more explanation.

File

core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php, line 215

Class

TimezoneTest
Tests the timezone handling of datetime and datelist element types.

Namespace

Drupal\KernelTests\Core\Datetime\Element

Code

public function testDatelistElementTimesUnderstoodCorrectly() {
  $this
    ->assertTimesUnderstoodCorrectly('datelist', [
    'day',
    'month',
    'year',
    'hour',
    'minute',
    'second',
  ]);
}