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] [Versions 401 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