-
Bug
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-59441-master -
- Remove /tests/ folder from one of the modules
- Run unittest calendar/tests/container_test.php (calendar/tests/lib_test.php on Moodle 3.2)
Running phpunit tests on a system with non-standard plugins fails on the first plugin that is missing a tests/generator/lib.php file
The reason is line 299 of calendar/tests/container_test.php
$module = $this->getDataGenerator()->create_module($modname, ['course' => $course->id]);
A try... catch or if(this->getDataGenerator()) check will be necessary for contrib plugins.