File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 26
26
* @copyright 2024, Catalyst IT
27
27
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
28
*/
29
- class mod_cms_generator extends \component_generator_base {
29
+ class mod_cms_generator extends testing_module_generator {
30
30
31
31
/** @var int */
32
32
protected $ cmstypecount = 0 ;
33
33
34
+ /**
35
+ * Create new cms module instance
36
+ *
37
+ * @param array|stdClass $record
38
+ * @param array $options
39
+ * @return stdClass
40
+ */
41
+ public function create_instance ($ record = null , array $ options = null ) {
42
+ $ record = (object ) (array ) $ record ;
43
+
44
+ // Simple setup to pass core_calendar\container_test::test_delete_module_delete_events.
45
+ $ record ->typeid = 0 ;
46
+
47
+ return parent ::create_instance ($ record , (array ) $ options );
48
+ }
49
+
34
50
/**
35
51
* Get generator for custom fields.
36
52
* @return core_customfield_generator
You can’t perform that action at this time.
0 commit comments