Differences Between: [Versions 311 and 403]
(no description)
File Size: | 619 lines (28 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
fields_test:: (16 methods):
test_get_picture_fields()
test_get_name_fields()
test_get_identity_fields()
test_get_identity_fields_invalid()
test_get_required_fields()
test_get_required_fields_limitpurposes()
test_get_required_fields_limitpurposes_not_in_constructor()
init_for_sql_tests()
test_get_sql_variations()
test_get_sql_multiple()
test_get_sql_nothing()
test_get_sql_no_custom_fields()
test_get_sql_selects_format()
get_sql_fullname_provider()
test_get_sql_fullname()
test_get_sql_fullname_null_field()
Class: fields_test - X-Ref
Unit tests for \core_user\fieldstest_get_picture_fields() X-Ref |
Tests getting the user picture fields. |
test_get_name_fields() X-Ref |
Tests getting the user name fields. |
test_get_identity_fields() X-Ref |
Tests getting the identity fields. |
test_get_identity_fields_invalid() X-Ref |
Test getting identity fields, when one of them refers to a non-existing custom profile field |
test_get_required_fields() X-Ref |
Tests the get_required_fields function. This function composes the results of get_identity/name/picture_fields, so we are not going to test the details of the identity permissions as that was already covered. Just how they are included/combined. |
test_get_required_fields_limitpurposes() X-Ref |
Tests the get_required_fields function when you use the $limitpurposes parameter. |
test_get_required_fields_limitpurposes_not_in_constructor() X-Ref |
There should be an exception if you try to 'limit' purposes to one that wasn't even included. |
init_for_sql_tests() X-Ref |
Sets up data and a fields object for all the get_sql tests. return: fields Constructed fields object for testing |
test_get_sql_variations() X-Ref |
Tests getting SQL (and actually using it). |
test_get_sql_multiple() X-Ref |
Tests what happens if you use the SQL multiple times in a query (i.e. that it correctly creates the different identifiers). |
test_get_sql_nothing() X-Ref |
Tests the get_sql function when there are no fields to retrieve. |
test_get_sql_no_custom_fields() X-Ref |
Tests get_sql when there are no custom fields; in this scenario, the joins and joinparams are always blank. |
test_get_sql_selects_format() X-Ref |
Tests the format of the $selects string, which is important particularly for backward compatibility. |
get_sql_fullname_provider() X-Ref |
Data provider for {@see test_get_sql_fullname} return: array |
test_get_sql_fullname(string $fullnamedisplay, string $expectedfullname) X-Ref |
Test sql_fullname_display method with various fullname formats param: string $fullnamedisplay param: string $expectedfullname |
test_get_sql_fullname_null_field() X-Ref |
Test sql_fullname_display when one of the configured name fields is null |