mirror of
https://github.com/moodle/moodle.git
synced 2025-04-04 16:04:00 +02:00
Merge branch 'MDL-78135-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
e2a7a44d3e
@ -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