public function KernelTestBaseTest::testLocalTimeZone in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testLocalTimeZone()
- 10 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testLocalTimeZone()
Tests the assumption that local time is in 'Australia/Sydney'.
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 242
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testLocalTimeZone() {
// The 'Australia/Sydney' time zone is set in core/tests/bootstrap.php
$this
->assertEquals('Australia/Sydney', date_default_timezone_get());
}