function 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 214
Class
- TimezoneTest
- Tests the timezone handling of datetime and datelist element types.
Namespace
Drupal\KernelTests\Core\Datetime\ElementCode
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.