Fix some failing tests for PHP 8.1

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2021-06-01 23:41:16 -03:00
parent 6b169b9fdf
commit eb96360cda
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 5 additions and 1 deletions

View File

@ -1051,7 +1051,7 @@ class Import
?array &$analyses = null,
?array &$additional_sql = null,
?array $options = null,
array &$sql_data
array &$sql_data = []
): void {
global $import_notice, $dbi;

View File

@ -535,6 +535,10 @@ class StructureControllerTest extends AbstractTestCase
$tablesProperty = $class->getProperty('tables');
$tablesProperty->setAccessible(true);
$numTables = $class->getProperty('numTables');
$numTables->setAccessible(true);
$numTables->setValue($controller, 1);
//no tables
$_REQUEST['db'] = 'my_unique_test_db';
$tablesProperty->setValue($controller, []);