Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

(no description)

File Size: 359 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 message/tests/search_sent_test.php

Defines 1 class


Class: search_received_test  - X-Ref

Provides the unit tests for received messages global search.

setUp()   X-Ref
Setting up the test environment

return: void

test_message_received_indexing()   X-Ref
Indexing messages contents.

return: void

test_message_received_indexing_contexts()   X-Ref
Indexing messages, with restricted contexts.


test_message_received_document()   X-Ref
Document contents.

return: void

test_message_received_access()   X-Ref
Document accesses.

return: void

test_message_received_deleted_user()   X-Ref
Test received deleted user.
Tests the case where a received message for a deleted user
is attempted to be added to the index.

return: void

test_get_doc_icon()   X-Ref
Test document icon.


test_get_category_names()   X-Ref
Test assigned search categories.