MDL-81457 core: Mark SSL test as skipped, not incomplete

The incomplete test is intended for tests which are written but whose
code does not yet exist.

https://docs.phpunit.de/en/9.6/incomplete-and-skipped-tests.html
This commit is contained in:
Andrew Nicols
2024-04-08 08:46:44 +08:00
parent 6294b06174
commit 60a2eba17d
2 changed files with 4 additions and 2 deletions
@@ -411,7 +411,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 {