public function TimezoneTest::testDatetimeTimezonePropertyProcessed in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::testDatetimeTimezonePropertyProcessed()
- 9 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');
}