Moodle

Move module generation code to modules

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: Unknown
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE

Description

Each module or moodle element must be responsible for generating its own random test data.

Activity

Hide
Tomasz Muras added a comment -

I understand that this will require adding a new function to each module, e.g.:
<modulename>_generate_test (to match function used already for question types)

This function should generate and create an instance of the module, filled with random data. With this approach, the information like the course ID should be passed as function's argument.

Show
Tomasz Muras added a comment - I understand that this will require adding a new function to each module, e.g.: <modulename>_generate_test (to match function used already for question types) This function should generate and create an instance of the module, filled with random data. With this approach, the information like the course ID should be passed as function's argument.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: