Upgraded drupal core with security updates
[yaffs-website] / web / core / tests / Drupal / KernelTests / KernelTestBaseTest.php
index 8ec7c5497a107164c047d6e1a9b98a7e2904f07b..817d894d424c43c3f9f0a2e5bff57836ba859ebc 100644 (file)
@@ -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}
    */