From a632739617a25545f87eae00b2b44191f3c2792e Mon Sep 17 00:00:00 2001 From: Daniel Thies Date: Fri, 7 Feb 2020 09:51:19 -0600 Subject: [PATCH] MDL-67817 core_date: Add test for timezone localization strings --- lib/tests/date_test.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/tests/date_test.php b/lib/tests/date_test.php index 2cd0d9f7329dc..702124e9bc276 100644 --- a/lib/tests/date_test.php +++ b/lib/tests/date_test.php @@ -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();