Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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: 522 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: search_test  - 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.