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.

(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