Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Component generator base class. More...
Public Member Functions | |
__construct (testing_data_generator $datagenerator) | |
Constructor. More... | |
reset () | |
To be called from data reset code only, do not use in tests. More... | |
Protected Attributes | |
testing_data_generator | $datagenerator |
Component generator base class.
Extend in path/to/component/tests/generator/lib.php as class type_plugin_generator extends component_generator_base Note that there are more specific classes to extend for mods and blocks.
component_generator_base::__construct | ( | testing_data_generator | $datagenerator | ) |
Constructor.
testing_data_generator | $datagenerator |
component_generator_base::reset | ( | ) |
To be called from data reset code only, do not use in tests.
void |
Reimplemented in core_question_generator, core_notes_generator, mod_wiki_generator, mod_survey_generator, mod_lesson_generator, mod_glossary_generator, mod_forum_generator, mod_data_generator, mod_chat_generator, mod_book_generator, testing_repository_generator, testing_module_generator, testing_block_generator, core_competency_generator, and tool_dataprivacy_generator.