MDL-68760 string tests: make test_timezone_lang_strings message helpful

This commit is contained in:
Tim Hunt 2020-05-18 16:51:17 +01:00
parent d85118369d
commit 8f406297e0

View File

@ -170,7 +170,8 @@ class core_date_testcase extends advanced_testcase {
$phpzones = DateTimeZone::listIdentifiers();
$manager = get_string_manager();
foreach ($phpzones as $tz) {
$this->assertTrue($manager->string_exists(strtolower($tz), 'core_timezones'));
$this->assertTrue($manager->string_exists(strtolower($tz), 'core_timezones'),
'String for timezone ' . strtolower($tz) . ' not found.');
}
}