diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-05-21 16:11:59 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-05-21 16:11:59 +0300 |
commit | 3bc39289e70c383bdc7aedc2f86497024bc0358a (patch) | |
tree | 0c1ef442041c1ed84d5d7455f9c4c73b08e05de6 /test/classes | |
parent | 8a7308c3f4b8e07f0948762ad19f4beda435626c (diff) |
Fix PHP 8.1 PHPUnit tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test/classes')
-rw-r--r-- | test/classes/Controllers/Database/StructureControllerTest.php | 4 |
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, []); |