Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 400 and 402]

(no description)

File Size: 215 lines (8 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


report_limit_reached_provider()   X-Ref
Data provider for {@see test_report_limit_reached}

return: array

test_report_limit_reached(int $customreportslimit, int $existingreports, bool $expected)   X-Ref
Test test_report_limit_reached method to check site custom reports limit

param: int $customreportslimit
param: int $existingreports
param: bool $expected