Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Class: base_test  - X-Ref

Unit tests for report base class

setUpBeforeClass()   X-Ref
Load required class


test_add_base_condition_simple()   X-Ref
Test for add_base_condition_simple


test_add_base_condition_simple_null()   X-Ref
Test for add_base_condition_simple null


test_add_base_condition_sql()   X-Ref
Test for adding SQL base condition to a report


test_add_base_condition_sql_multiple()   X-Ref
Test for adding multiple SQL base condition to a report


test_add_base_condition_sql_empty_clause()   X-Ref
Test for adding empty SQL base condition to a report


test_add_base_condition_sql_invalid_parameter()   X-Ref
Test for adding SQL base condition to a report with invalid parameter


test_get_base_condition_default()   X-Ref
Test getting report base conditions, where none have been set


test_get_filter_instances()   X-Ref
Test for get_filter_instances


test_set_downloadable()   X-Ref
Test for set_downloadable


test_get_context()   X-Ref
Test for get_context


test_annotate_entity()   X-Ref
Test entity annotation


test_annotate_entity_invalid()   X-Ref
Test entity annotation for invalid entity name


test_annotate_entity_duplicate()   X-Ref
Test entity annotation for duplicated entity name


test_get_column()   X-Ref
Test for get_column


test_get_filter()   X-Ref
Test for get_filter


test_get_report_persistent()   X-Ref
Test for get_report_persistent