TimezoneTest::$timezones

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::timezones
  2. 10 core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::timezones
  3. 11.x core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php \Drupal\KernelTests\Core\Datetime\Element\TimezoneTest::timezones

An array of timezones with labels denoting their use in the tests.

Type: array

File

core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php, line 41

Class

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

Namespace

Drupal\KernelTests\Core\Datetime\Element

Code

protected $timezones = [
    // UTC-12, no DST.
'zone A' => 'Pacific/Kwajalein',
    // UTC-7, no DST.
'zone B' => 'America/Phoenix',
    // UTC+5:30, no DST.
'user' => 'Asia/Kolkata',
    'UTC' => 'UTC',
];

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