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: 178 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_reportbuilder_testcase  - X-Ref

Helper base class for reportbuilder unit tests

get_custom_report_content(int $reportid, int $pagesize = 30)   X-Ref
Retrieve content for given report as array of report data

return: array[]
param: int $reportid
param: int $pagesize

datasource_stress_test_columns(string $source)   X-Ref
Stress test a report source by iterating over all it's columns, enabling sorting where possible and asserting we can
create a report for each

param: string $source

datasource_stress_test_columns_aggregation(string $source)   X-Ref
Stress test a report source by iterating over all columns and asserting we can create a report while aggregating each

param: string $source

datasource_stress_test_conditions(string $source, string $columnidentifier)   X-Ref
Stress test a report source by iterating over all it's conditions and asserting we can create a report using each

param: string $source
param: string $columnidentifier Should be a simple column, with as few fields and joins as possible, ideally selected