X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FKernelTestBaseTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FKernelTestBaseTest.php;h=817d894d424c43c3f9f0a2e5bff57836ba859ebc;hp=8ec7c5497a107164c047d6e1a9b98a7e2904f07b;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/tests/Drupal/KernelTests/KernelTestBaseTest.php b/web/core/tests/Drupal/KernelTests/KernelTestBaseTest.php index 8ec7c5497..817d894d4 100644 --- a/web/core/tests/Drupal/KernelTests/KernelTestBaseTest.php +++ b/web/core/tests/Drupal/KernelTests/KernelTestBaseTest.php @@ -214,6 +214,14 @@ class KernelTestBaseTest extends KernelTestBase { $this->assertEquals('public', \Drupal::config('system.file')->get('default_scheme')); } + /** + * Tests the assumption that local time is in 'Australia/Sydney'. + */ + public function testLocalTimeZone() { + // The 'Australia/Sydney' time zone is set in core/tests/bootstrap.php + $this->assertEquals('Australia/Sydney', date_default_timezone_get()); + } + /** * {@inheritdoc} */