X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalTests%2FBrowserTestBaseTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FFunctionalTests%2FBrowserTestBaseTest.php;h=3a0750113c561a11f4de3b007256a689d1281e87;hp=3689dddbc6865396535646322996478ab6041337;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/web/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php index 3689dddbc..3a0750113 100644 --- a/web/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +++ b/web/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php @@ -503,4 +503,18 @@ class BrowserTestBaseTest extends BrowserTestBase { $this->assertTrue(file_exists($htaccess_filename), "$htaccess_filename exists"); } + /** + * 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()); + + // The 'Australia/Sydney' time zone is also set in + // FunctionalTestSetupTrait::initConfig(). + $config_factory = $this->container->get('config.factory'); + $value = $config_factory->get('system.date')->get('timezone.default'); + $this->assertEquals('Australia/Sydney', $value); + } + }