function SystemFunctionsLegacyTest::testSystemTimeZones

@covers ::system_time_zones

File

core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php, line 29

Class

SystemFunctionsLegacyTest
Tests the deprecations in the system module.

Namespace

Drupal\Tests\system\Kernel\System

Code

public function testSystemTimeZones() : void {
    $this->expectDeprecation('system_time_zones() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use \\Drupal\\Core\\Datetime\\TimeZoneFormHelper::getOptionsList(), \\Drupal\\Core\\Datetime\\TimeZoneFormHelper::getOptionsListByRegion() or \\DateTimeZone::listIdentifiers() instead. See https://www.drupal.org/node/3023528');
    system_time_zones();
}

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