mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-67817 core_date: Add test for timezone localization strings
This commit is contained in:
parent
bf270d13fa
commit
a632739617
@ -166,6 +166,14 @@ class core_date_testcase extends advanced_testcase {
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user