Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

Forum search unit tests.

Copyright: 2015 David Monllao {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 520 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: mod_forum_search_testcase  - X-Ref

Provides the unit tests for forum search.

setUp()   X-Ref


test_search_enabled()   X-Ref
Availability.

return: void

test_posts_indexing()   X-Ref
Indexing mod forum contents.

return: void

test_posts_document()   X-Ref
Document contents.

return: void

test_posts_group_support()   X-Ref
Group support for forum posts.


test_posts_access()   X-Ref
Document accesses.

return: void

test_attach_files()   X-Ref
Test for post attachments.

return: void

test_posts_get_contexts_to_reindex()   X-Ref
Tests that reindexing works in order starting from the forum with most recent discussion.