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.

Differences Between: [Versions 400 and 401]

(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