From b8c647f65aa347f4ef8d4b90b993f116901950fa Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Nov 2020 16:47:41 +0000 Subject: [PATCH] Male the tests work again with PHP 7.2 --- tests/functional/DependencyCheckTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index da7103e43b..42dcb78176 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -79,6 +79,7 @@ class DependencyCheckTest extends TestCase self::assertInstanceOf(ConfigFileLoader::class, $configFileLoader); $configCache = new Cache(); + $configCache->set('database', 'disable_pdo', true); $configFileLoader->setupCache($configCache); self::assertNotEmpty($configCache->getAll()); @@ -123,8 +124,8 @@ class DependencyCheckTest extends TestCase self::assertNotNull($database->getConnection(), 'There is no database connection'); $result = $database->p("SELECT 1"); - self::assertEquals($database->errorMessage(), '', 'There had been a database error message'); - self::assertEquals($database->errorNo(), 0, 'There had been a database error number'); + self::assertEquals('', $database->errorMessage(), 'There had been a database error message'); + self::assertEquals(0, $database->errorNo(), 'There had been a database error number'); self::assertTrue($database->connected(), 'The database is not connected'); }