MDL-59287 core_completion: Update to unit tests.
[moodle.git] / course / tests / courselib_test.php
index 5ce1ffa..5da897d 100644 (file)
@@ -3237,6 +3237,8 @@ class core_course_courselib_testcase extends advanced_testcase {
 
         $this->resetAfterTest(true);
 
+        $this->setAdminUser();
+
         $CFG->enablecompletion = true;
 
         $this->setTimezone('UTC');