MDL-54008 tests: clarify comment in tz test
authorDan Poltawski <dan@moodle.com>
Tue, 3 May 2016 08:08:00 +0000 (09:08 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 3 May 2016 08:08:27 +0000 (09:08 +0100)
lib/tests/date_legacy_test.php

index 7584163..ff5c2a4 100644 (file)
@@ -340,7 +340,8 @@ class core_date_legacy_testcase extends advanced_testcase {
         $USER->timezone = 'Europe/Prague';
         $this->assertSame('Europe/Prague', usertimezone('99'));
 
-        // Checking fallback with an unexisting timezone.
+        // When passed an unknown non-whole hour TZ, verify we round to closest
+        // hour. (Possible for legacy reasons when old timezones go away).
         $USER->timezone = '-9.23';
         $this->assertSame('UTC-9', usertimezone('99'));
     }