MDL-80167 core: Skip Oracle for Oracle environment in unit tests

This commit is contained in:
Huong Nguyen 2024-03-15 08:45:42 +07:00
parent 1c604c9cb4
commit 699a0e9328

View File

@ -85,6 +85,10 @@ class environment_test extends \advanced_testcase {
// If we're on a 32-bit system, skip 64-bit check. 32-bit PHP has PHP_INT_SIZE set to 4.
$this->markTestSkipped('64-bit check is not necessary for unit testing.');
}
if ($result->info === 'oracle_database_usage') {
// If we're on a system that uses the Oracle database, skip the Oracle check.
$this->markTestSkipped('Oracle database check is not necessary for unit testing.');
}
}
$info = "{$result->part}:{$result->info}";
$this->assertTrue($result->getStatus(), "Problem detected in environment ($info), fix all warnings and errors!");