function TestSuiteBaseTest::testLocalTimeZone
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::testLocalTimeZone()
- 8.9.x core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::testLocalTimeZone()
- 10 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::testLocalTimeZone()
Tests the assumption that local time is in 'Australia/Sydney'.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ TestSuiteBaseTest.php, line 17
Class
- TestSuiteBaseTest
- @group Test
Namespace
Drupal\Tests\Core\TestCode
public function testLocalTimeZone() : void {
// The 'Australia/Sydney' time zone is set in core/tests/bootstrap.php
$this->assertEquals('Australia/Sydney', date_default_timezone_get());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.