]> git.mxchange.org Git - friendica.git/commitdiff
Male the tests work again with PHP 7.2
authorMichael <heluecht@pirati.ca>
Sun, 8 Nov 2020 16:47:41 +0000 (16:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 8 Nov 2020 16:47:41 +0000 (16:47 +0000)
tests/functional/DependencyCheckTest.php

index da7103e43bc7ee8f1e2342e46b1ebe84e154bc13..42dcb7817644914ef237fe6380c77d180817f83b 100644 (file)
@@ -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');
        }