Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2021-05-21 16:11:59 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-05-21 16:11:59 +0300
commit3bc39289e70c383bdc7aedc2f86497024bc0358a (patch)
tree0c1ef442041c1ed84d5d7455f9c4c73b08e05de6 /test
parent8a7308c3f4b8e07f0948762ad19f4beda435626c (diff)
Fix PHP 8.1 PHPUnit tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r--test/classes/Controllers/Database/StructureControllerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/classes/Controllers/Database/StructureControllerTest.php b/test/classes/Controllers/Database/StructureControllerTest.php
index 6ba8d46d6c..b1798447bf 100644
--- a/test/classes/Controllers/Database/StructureControllerTest.php
+++ b/test/classes/Controllers/Database/StructureControllerTest.php
@@ -541,6 +541,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, []);