function TimezoneTest::testDatetimeTimezonePropertyProcessed

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

Class

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

Namespace

Drupal\KernelTests\Core\Datetime\Element

Code

public function testDatetimeTimezonePropertyProcessed() : void {
    $this->assertDateTimezonePropertyProcessed('datetime');
}

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