function TimezoneTest::testDatelistElementTimesUnderstoodCorrectly

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatelistElementTimesUnderstoodCorrectly()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatelistElementTimesUnderstoodCorrectly()
  3. 11.x 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 217

Class

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

Namespace

Drupal\KernelTests\Core\Datetime\Element

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.