Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]
(no description)
File Size: | 524 lines (25 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
fields_test:: (12 methods):
test_get_picture_fields()
test_get_name_fields()
test_get_identity_fields()
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()
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_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. |