Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]
(no description)
File Size: | 331 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
profilelib_test:: (9 methods):
test_get_custom_fields()
test_default_constructor()
test_profile_view()
test_profile_has_required_custom_fields_set()
test_profile_fields_in_generator()
test_profile_get_custom_field_data_by_shortname_normal()
test_profile_get_custom_field_data_by_shortname_missing()
profile_get_custom_field_data_by_shortname_case_sensitivity_provider()
test_profile_get_custom_field_data_by_shortname_case_sensitivity()
Class: profilelib_test - X-Ref
Unit tests for user/profile/lib.php.test_get_custom_fields() X-Ref |
Tests profile_get_custom_fields function and checks it is consistent with profile_user_record. |
test_default_constructor() X-Ref |
Make sure that all profile fields can be initialised without arguments. |
test_profile_view() X-Ref |
Test profile_view function |
test_profile_has_required_custom_fields_set() X-Ref |
Test that {@link user_not_fully_set_up()} takes required custom fields into account. |
test_profile_fields_in_generator() X-Ref |
Test that user generator sets the custom profile fields |
test_profile_get_custom_field_data_by_shortname_normal() X-Ref |
Tests the profile_get_custom_field_data_by_shortname function when working normally. |
test_profile_get_custom_field_data_by_shortname_missing() X-Ref |
Tests the profile_get_custom_field_data_by_shortname function with a field that doesn't exist. |
profile_get_custom_field_data_by_shortname_case_sensitivity_provider() X-Ref |
Data provider for {@see test_profile_get_custom_field_data_by_shortname_case_sensitivity} return: array[] |
test_profile_get_custom_field_data_by_shortname_case_sensitivity(string $shortname,string $shortnamesearch,bool $casesensitive,bool $expectmatch) X-Ref |
Test retrieving custom field by shortname, specifying case-sensitivity when matching param: string $shortname param: string $shortnamesearch param: bool $casesensitive param: bool $expectmatch |