Skip to content

Commit

Permalink
MDL-67817 core_date: Add test for timezone localization strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dthies committed Feb 14, 2020
1 parent bf270d1 commit a632739
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tests/date_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ public function test_php_gmt_offsets() {
}
}

public function test_timezone_lang_strings() {
$phpzones = DateTimeZone::listIdentifiers();
$manager = get_string_manager();
foreach ($phpzones as $tz) {
$this->assertTrue($manager->string_exists(strtolower($tz), 'core_timezones'));
}
}

public function test_get_localised_timezone() {
$this->resetAfterTest();

Expand Down

0 comments on commit a632739

Please sign in to comment.