Differences Between: [Versions 310 and 311] [Versions 311 and 403] [Versions 39 and 311]
(no description)
File Size: | 1098 lines (50 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
datalib_test:: (25 methods):
normalise_sql()
assert_same_sql()
test_users_search_sql()
test_users_order_by_sql_simple()
test_users_order_by_sql_table_prefix()
test_users_order_by_sql_search_no_extra_fields()
test_users_order_by_sql_search_with_extra_fields_and_prefix()
test_users_order_by_sql_search_with_custom_fields()
test_get_admin()
test_get_admins()
test_get_course()
test_get_courses_with_fields()
test_increment_revision_number()
test_get_coursemodule_from_id()
test_get_coursemodule_from_instance()
test_get_coursemodules_in_course()
test_get_all_instances_in_courses()
test_get_all_instances_in_course()
test_max_courses_in_category()
test_debug_max_courses_in_category()
test_get_users_listing()
get_safe_orderby_provider()
test_get_safe_orderby()
get_safe_orderby_multiple_provider()
test_get_safe_orderby_multiple()
Class: datalib_test - X-Ref
Test for various bits of datalib.php.normalise_sql($sort) X-Ref |
No description |
assert_same_sql($expected, $actual) X-Ref |
No description |
test_users_search_sql() X-Ref |
Do a test of the user search SQL with database users. |
test_users_order_by_sql_simple() X-Ref |
No description |
test_users_order_by_sql_table_prefix() X-Ref |
No description |
test_users_order_by_sql_search_no_extra_fields() X-Ref |
No description |
test_users_order_by_sql_search_with_extra_fields_and_prefix() X-Ref |
No description |
test_users_order_by_sql_search_with_custom_fields() X-Ref |
No description |
test_get_admin() X-Ref |
No description |
test_get_admins() X-Ref |
No description |
test_get_course() X-Ref |
No description |
test_get_courses_with_fields() X-Ref |
Test that specifying fields when calling get_courses always returns required fields "id, category, visible" |
test_increment_revision_number() X-Ref |
No description |
test_get_coursemodule_from_id() X-Ref |
No description |
test_get_coursemodule_from_instance() X-Ref |
No description |
test_get_coursemodules_in_course() X-Ref |
No description |
test_get_all_instances_in_courses() X-Ref |
No description |
test_get_all_instances_in_course() X-Ref |
No description |
test_max_courses_in_category() X-Ref |
Test max courses in category |
test_debug_max_courses_in_category() X-Ref |
Test debug message for max courses in category |
test_get_users_listing() X-Ref |
Tests the get_users_listing function. |
get_safe_orderby_provider() X-Ref |
Data provider for test_get_safe_orderby(). return: array |
test_get_safe_orderby(array $orderbymap, string $orderbykey, string $direction, string $expected) X-Ref |
Tests the get_safe_orderby function. param: array $orderbymap The ORDER BY parameter mapping array. param: string $orderbykey The string key being provided, to check against the map. param: string $direction The optional direction to order by. param: string $expected The expected string output of the method. |
get_safe_orderby_multiple_provider() X-Ref |
Data provider for test_get_safe_orderby_multiple(). return: array |
test_get_safe_orderby_multiple(array $orderbymap, array $orderbykeys, array $directions,string $expected) X-Ref |
Tests the get_safe_orderby_multiple function. param: array $orderbymap The ORDER BY parameter mapping array. param: array $orderbykeys The array of string keys being provided, to check against the map. param: array $directions The optional directions to order by. param: string $expected The expected string output of the method. |