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

This commit is contained in:
Sara Arjona 2024-04-23 14:57:03 +02:00
commit 4378d1dadc
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

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);

View File

@ -122,7 +122,8 @@ class mysqli_native_moodle_database_test extends \advanced_testcase {
} catch (moodle_exception $e) {
// ... or fail.
// Unfortunately we cannot be sure with the error string.
$this->markTestIncomplete('SSL not supported?');
$this->markTestSkipped('MySQL server does not support SSL. Unable to complete the test.');
return;
}
try {

View File

@ -409,7 +409,8 @@ class pgsql_native_moodle_database_test extends \advanced_testcase {
// ... or fail with SSL not supported.
$this->assertStringContainsString($pgconnerr, $e->debuginfo);
$this->assertStringContainsString('server does not support SSL', $e->debuginfo);
$this->markTestIncomplete('SSL not supported.');
$this->markTestSkipped('Postgres server does not support SSL. Unable to complete the test.');
return;
}
try {