Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
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
- All
- Comments
- History
- Activity
- Source
- Test Sessions
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.