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] [Versions 402 and 403]

(no description)

File Size: 183 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, array $filtervalues = [])   X-Ref
Retrieve content for given report as array of report data

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

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