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
diff options
context:
space:
mode:
-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, []);