mirror of
https://github.com/friendica/friendica
synced 2024-11-09 15:42:55 +00:00
Male the tests work again with PHP 7.2
This commit is contained in:
parent
e7b344d5ff
commit
b8c647f65a
1 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue