See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]
Search engine base unit tests.
Copyright: | 2017 Matt Porritt <mattp@catalyst-au.net> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 397 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file search/tests/fixtures/testable_core_search.php |
search_base_activity_testcase:: (11 methods):
setUp()
tearDown()
test_get_search_fileareas_base()
test_attach_files_base()
test_get_document_recordset()
recordset_to_indexed_array()
records_to_ids()
test_get_doc_url()
test_check_access()
test_get_contexts_to_reindex()
test_get_doc_icon()
Class: search_base_activity_testcase - X-Ref
Search engine base unit tests.setUp() X-Ref |
tearDown() X-Ref |
No description |
test_get_search_fileareas_base() X-Ref |
Test base activity get search fileareas |
test_attach_files_base() X-Ref |
Test base attach files |
test_get_document_recordset() X-Ref |
Tests getting the recordset. |
recordset_to_indexed_array(moodle_recordset $rs) X-Ref |
Utility function to convert recordset to array for testing. param: moodle_recordset $rs Recordset to convert return: array Array indexed by number (0, 1, 2, ...) |
records_to_ids(array $recs) X-Ref |
Utility function to convert records to array of IDs. param: array $recs Records which should have an 'id' field return: array Array of ids |
test_get_doc_url() X-Ref |
Tests the get_doc_url function. |
test_check_access() X-Ref |
Tests the check_access function. |
test_get_contexts_to_reindex() X-Ref |
Tests the module version of get_contexts_to_reindex, which is supposed to return all the activity contexts in order of date added. |
test_get_doc_icon() X-Ref |
Test document icon. |