Merge branch 'MDL-81457-402' of https://github.com/andrewnicols/moodle into MOODLE_402_STABLE

This commit is contained in:
Sara Arjona
2024-04-23 14:57:45 +02:00
+2 -1
View File
@@ -328,8 +328,9 @@ class externallib_test extends externallib_advanced_testcase {
$this->expectExceptionMessage($exception['message']);
} else {
// Failed, only canview and exception are supported.
$this->markTestIncomplete('Incomplete, only canview and exception are supported');
throw new \coding_exception('Incomplete, only canview and exception are supported');
}
// Switch to the user and assign the role.
$this->setUser(${$user});
role_assign($roleid, $USER->id, $coursecontext);