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 310]

(no description)

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

Defines 1 class

behat_mod_forum_generator:: (5 methods):
  get_creatable_entities()
  get_forum_id()
  get_group_id()
  preprocess_discussion()
  preprocess_post()


Class: behat_mod_forum_generator  - X-Ref

Behat data generator for mod_forum.

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

return: array

get_forum_id(string $idnumberorname)   X-Ref
Get the forum id using an activity idnumber or name.

param: string $idnumberorname The forum activity idnumber or name.
return: int The forum id

get_group_id($idnumber)   X-Ref
Gets the group id from it's idnumber. It allows using 'All participants' as idnumber.

param: string $idnumber
return: int

preprocess_discussion(array $data)   X-Ref
Preprocess discussion data.

param: array $data Raw data.
return: array Processed data.

preprocess_post(array $data)   X-Ref
Preprocess post data.

param: array $data Raw data.
return: array Processed data.