-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.8.2
-
MOODLE_38_STABLE
In unittests we were trying to add a completion criteria to a course and hit this
PHP Fatal error: Class 'completion_criteria' not found in /.../completion/criteria/completion_criteria_self.php on line 38
|
the require_once() is missing in core but this file is probably included somewhere else so normally this error does not happen
This is how to reproduce it in core (note that php init is essential because after that the cache is built and completion library is loaded):
php admin/tool/phpunit/cli/init.php
|
./vendor/bin/phpunit completion/tests/externallib_test.php --filter test_mark_course_self_completed
|
- has been marked as being related by
-
MDL-67680 Removing the after_config callback will make moodle unusable
- Closed
- links to