Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
(no description)
File Size: | 407 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
column_manager_test:: (14 methods):
get_question_bank()
get_columns()
settings_provider()
get_data_from_datamethod()
test_settings()
test_reset_settings()
test_settings_user()
test_reset_user_settings()
test_getcolumns_function()
test_get_sorted_columns()
test_disable_columns()
test_plugin_enabled_disabled_observers()
test_enable_columns()
test_get_disabled_columns()
Class: column_manager_test - X-Ref
Test class for columnsortorder feature.get_question_bank() X-Ref |
Generate a course and return a question bank view for the course context. return: view |
get_columns() X-Ref |
Return an array of visible columns for the question bank. return: array |
settings_provider() X-Ref |
Provide examples for testing each column setting function, with test data and data format. return: array[] |
get_data_from_datamethod(array|string $datamethod) X-Ref |
Retrieve data using the specified method. This function is used to retrieve data from various data methods defined within this class. param: array|string $datamethod This can be either a function name or an array containing the class and method name. return: array|string The retrieved data as an array or string, depending on the data method used. |
test_settings(string $setting,string $function,array|string $datamethod,bool $csv,) X-Ref |
Test setting config settings param: string $setting The name of the setting being saved param: string $function The name of the function being called param: array|string $datamethod The property of the test class to pass to the function. param: bool $csv True of the data is stored as a comma-separated list. return: void |
test_reset_settings(string $setting,string $function,array|string $datamethod,bool $csv,) X-Ref |
Test passing null clears the corresponding config setting. param: string $setting The name of the setting being saved param: string $function The name of the function being called param: array|string $datamethod The property of the test class to pass to the function. param: bool $csv True of the data is stored as a comma-separated list. return: void |
test_settings_user(string $setting,string $function,array|string $datamethod,bool $csv,) X-Ref |
Test setting user preferences param: string $setting The name of the setting being saved param: string $function The name of the function being called param: array|string $datamethod The property of the test class to pass to the function. param: bool $csv True of the data is stored as a comma-separated list. return: void |
test_reset_user_settings(string $setting,string $function,array|string $datamethod,bool $csv,) X-Ref |
Test passing null clears the corresponding user preference. param: string $setting The name of the setting being saved param: string $function The name of the function being called param: array|string $datamethod The property of the test class to pass to the function. param: bool $csv True of the data is stored as a comma-separated list. return: void |
test_getcolumns_function() X-Ref |
Test function get_columns in helper class, that proper data is returned. |
test_get_sorted_columns() X-Ref |
The get_sorted_columns method should return the provided columns sorted according to enabledcol setting. return: void |
test_disable_columns() X-Ref |
Test disabled columns are removed from enabledcol setting and added to disabledcol setting. return: void |
test_plugin_enabled_disabled_observers() X-Ref |
Test enabling and disabling columns through event observers |
test_enable_columns() X-Ref |
Test enabled columns are removed from disabledcol setting and added to enabledcol setting. return: void |
test_get_disabled_columns() X-Ref |
Test that get_disabled_columns returns names of all the columns in the disabledcol setting return: void |