From 0e8d4d8e2a7dc25149ada4c3e4af7691c51194ad Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Fri, 15 Mar 2024 08:45:42 +0700 Subject: [PATCH] MDL-80167 core: Skip Oracle for Oracle environment in unit tests --- lib/tests/environment_test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tests/environment_test.php b/lib/tests/environment_test.php index 1d9295a1aab..ebadd7b8b0a 100644 --- a/lib/tests/environment_test.php +++ b/lib/tests/environment_test.php @@ -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!");