function TimeZoneDeprecationTest::testDeprecation

@expectedDeprecation drupal_get_user_timezone() is deprecated in drupal:8.8.0. It will be removed from drupal:9.0.0. Use date_default_timezone_get() instead. See https://www.drupal.org/node/3009387

File

core/modules/system/tests/src/Kernel/TimeZoneDeprecationTest.php, line 26

Class

TimeZoneDeprecationTest
Tests deprecated methods in bootstrap throw deprecation warnings.

Namespace

Drupal\Tests\system\Kernel

Code

public function testDeprecation() {
    $this->assertEquals('Australia/Sydney', drupal_get_user_timezone());
}

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