Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 401] [Versions 39 and 402] [Versions 39 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.