mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-78135 completion: include required criteria library in test.
This commit is contained in:
parent
5d320dd7d1
commit
d85eb0a061
@ -126,7 +126,9 @@ class progress_test extends \advanced_testcase {
|
||||
* @covers \core_completion\progress::get_course_progress_percentage.
|
||||
*/
|
||||
public function test_course_progress_percentage_completion_state() {
|
||||
global $DB;
|
||||
global $DB, $CFG;
|
||||
|
||||
require_once("{$CFG->dirroot}/completion/criteria/completion_criteria_activity.php");
|
||||
|
||||
// Add a course that supports completion.
|
||||
$course = $this->getDataGenerator()->create_course(['enablecompletion' => 1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user