See Release Notes
Long Term Support Release
Unit tests for current_language() in moodlelib.php.
Copyright: | 2022 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 196 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
moodlelib_current_language_test:: (7 methods):
test_current_language_site_default()
test_current_language_user_pref()
test_current_language_forced()
test_current_language_course_setting()
test_current_language_in_course_no_lang_set()
test_current_language_activity_setting()
test_current_language_activity_setting_not_set()
testable_string_manager_for_current_language_tests:: (3 methods):
set_fake_list_of_installed_languages()
reset_installed_languages_override()
get_list_of_translations()
Class: moodlelib_current_language_test - X-Ref
Unit tests for current_language() in moodlelib.php.test_current_language_site_default() X-Ref |
No description |
test_current_language_user_pref() X-Ref |
No description |
test_current_language_forced() X-Ref |
No description |
test_current_language_course_setting() X-Ref |
No description |
test_current_language_in_course_no_lang_set() X-Ref |
No description |
test_current_language_activity_setting() X-Ref |
No description |
test_current_language_activity_setting_not_set() X-Ref |
No description |
Class: testable_string_manager_for_current_language_tests - X-Ref
Test helper class for test which need Moodle to think there are other languages installed.set_fake_list_of_installed_languages(array $installedlanguages) X-Ref |
Start pretending that the list of installed languages is other than what it is. You need to pass in an array like ['en' => 'English', 'fr' => 'French']. param: array $installedlanguages the list of languages to assume are installed. |
reset_installed_languages_override() X-Ref |
Must be called at the end of any test which called set_fake_list_of_installed_languages to reset things. |
get_list_of_translations($returnall = false) X-Ref |
No description |