function TimezoneTest::testDatetimeTimezonePropertyProcessed
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatetimeTimezonePropertyProcessed()
- 10 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatetimeTimezonePropertyProcessed()
- 11.x core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatetimeTimezonePropertyProcessed()
On datetime elements test #date_timezone after ::processDatetime.
The element's render array has a #date_timezone value that should accurately reflect the timezone that will be used to interpret times entered through the element.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ Element/ TimezoneTest.php, line 233
Class
- TimezoneTest
- Tests the timezone handling of datetime and datelist element types.
Namespace
Drupal\KernelTests\Core\Datetime\ElementCode
public function testDatetimeTimezonePropertyProcessed() {
$this->assertDateTimezonePropertyProcessed('datetime');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.