Unit tests for login lib.
Copyright: | 2017 Juan Leyva |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 444 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_login_lib_testcase:: (14 methods):
test_core_login_process_password_reset_one_time_without_username_protection()
test_core_login_process_password_reset_two_consecutive_times_without_username_protection()
test_core_login_process_password_reset_three_consecutive_times_without_username_protection()
test_core_login_process_password_reset_one_time_with_username_protection()
test_core_login_process_password_reset_with_preexisting_expired_request_without_username_protection()
test_core_login_process_password_reset_disabled_auth()
test_core_login_process_password_reset_auth_not_supporting_email_reset()
test_core_login_process_password_reset_missing_parameters()
test_core_login_process_password_reset_invalid_username_with_username_protection()
test_core_login_process_password_reset_invalid_username_without_username_protection()
test_core_login_process_password_reset_invalid_email_without_username_protection()
forgot_password_data_provider()
test_core_login_validate_forgot_password_data()
test_core_login_process_password_reset_email_sensitivity()
Class: core_login_lib_testcase - X-Ref
Login lib testcase.test_core_login_process_password_reset_one_time_without_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_two_consecutive_times_without_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_three_consecutive_times_without_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_one_time_with_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_with_preexisting_expired_request_without_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_disabled_auth() X-Ref |
No description |
test_core_login_process_password_reset_auth_not_supporting_email_reset() X-Ref |
No description |
test_core_login_process_password_reset_missing_parameters() X-Ref |
No description |
test_core_login_process_password_reset_invalid_username_with_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_invalid_username_without_username_protection() X-Ref |
No description |
test_core_login_process_password_reset_invalid_email_without_username_protection() X-Ref |
No description |
forgot_password_data_provider() X-Ref |
Data provider for \core_login_lib_testcase::test_core_login_validate_forgot_password_data(). |
test_core_login_validate_forgot_password_data($data, $errors = [], $options = []) X-Ref |
Test for core_login_validate_forgot_password_data(). param: array $data Key-value array containing username and email data. param: array $errors Key-value array containing error messages for the username and email fields. param: array $options Options for $CFG->protectusernames, $CFG->allowaccountssameemail and $user->confirmed. |
test_core_login_process_password_reset_email_sensitivity() X-Ref |
Test searching for the user record by matching the provided email address when resetting password. Email addresses should be handled as case-insensitive but accent sensitive. |