Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

File Size: 236 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

generator_test:: (2 methods):
  test_create_preset()
  create_preset_provider()


Class: generator_test  - X-Ref

Tests for the data generator.

test_create_preset(?string $name = null, ?string $comments = null, ?string $author = null,bool $applypreset = false, ?int $iscore = null, ?int $iscoreresult = null)   X-Ref
Test the behaviour of create_preset() method.

param: string|null $name Preset name field.
param: string|null $comments Preset comments field.
param: string|null $author Preset author field.
param: bool $applypreset Whether the preset should be applied or not.
param: int|null $iscore Whether the preset is a core preset or not.
param: int|null $iscoreresult Expected iscore value for the result preset.

create_preset_provider()   X-Ref
Data provider for test_create_preset().

return: array