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 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

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

Defines 1 class

behat_mod_data_generator:: (7 methods):
  get_creatable_entities()
  get_database_id()
  process_entry()
  process_field()
  process_template()
  process_preset()
  get_data_generator()


Class: behat_mod_data_generator  - X-Ref

Behat data generator for mod_data.

get_creatable_entities()   X-Ref
Get a list of the entities that Behat can create using the generator step.

return: array

get_database_id(string $idnumber)   X-Ref
Get the database id using an activity idnumber.

param: string $idnumber
return: int The database id

process_entry(array $data)   X-Ref
Add an entry.

param: array $data Entry data.

process_field(array $data)   X-Ref
Add a field.

param: array $data Field data.

process_template(array $data)   X-Ref
Add a template.

param: array $data Template data.

process_preset(array $data)   X-Ref
Saves a preset.

param: array $data Preset data.

get_data_generator()   X-Ref
Get the module data generator.

return: mod_data_generator Database data generator.