You are here

public function TimezoneTest::testDatetimeTimezonePropertyProcessed in Drupal 8

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

Code

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