Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

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

Defines 1 class

behat_mod_data_generator:: (6 methods):
  get_creatable_entities()
  get_database_id()
  process_entry()
  process_field()
  process_template()
  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.

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

return: mod_data_generator Database data generator.