mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-80167 core: Skip Oracle for Oracle environment in unit tests
This commit is contained in:
parent
1c604c9cb4
commit
699a0e9328
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user