Skip to content

Commit b50b80d

Browse files
committed
Fix Table\StructureControllerTest failing test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 1fbfe2e commit b50b80d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/classes/Controllers/Table/StructureControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use PhpMyAdmin\Util;
1919
use PHPUnit\Framework\Attributes\CoversClass;
2020
use ReflectionClass;
21+
use ReflectionProperty;
2122

2223
#[CoversClass(StructureController::class)]
2324
class StructureControllerTest extends AbstractTestCase
@@ -47,6 +48,7 @@ public function testStructureController(): void
4748
$GLOBALS['cfg']['ShowStats'] = false;
4849
$GLOBALS['cfg']['ShowPropertyComments'] = false;
4950
(new ReflectionClass(Relation::class))->getProperty('cache')->setValue([]);
51+
(new ReflectionProperty(Template::class, 'twig'))->setValue(null);
5052

5153
$this->dummyDbi->addSelectDb('test_db');
5254
$this->dummyDbi->addSelectDb('test_db');

0 commit comments

Comments
 (0)