Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 177 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: manager_test  - X-Ref

Unit tests for the report manager class

test_get_report_from_persistent()   X-Ref
Test creating a report instance from persistent


test_get_report_from_persistent_per_user()   X-Ref
Test creating a report instance from persistent differs per-user, using a report source whose own initialization is
dependent on the current user (the users report source, loading available user profile fields)

Note: internally the {@see get_custom_report_content} test helper calls {@see manager::get_report_from_persistent}

test_get_report_from_persistent_invalid()   X-Ref
Test creating a report instance from persistent with an invalid source


test_get_report_from_persistent_unavailable()   X-Ref
Test creating a report instance from persistent with an unavailable source


test_report_source_exists()   X-Ref
Test report source exists


test_report_source_available()   X-Ref
Test report source available


test_create_report_persistent()   X-Ref
Test creating a report persistent model