Skip to content

Commit 2dd7b75

Browse files
committed
Fix failing RelationTest
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 22ac8c9 commit 2dd7b75

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/classes/ConfigStorage/RelationTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,13 +1939,17 @@ public function testInitRelationParamsDisabledTrackingOthersExist(): void
19391939
['NULL'],
19401940
);
19411941

1942+
$dummyDbi->addResult(
1943+
'SELECT `tables` FROM `PMA-storage`.`pma__favorite_custom` WHERE `username` = \'\'',
1944+
[],
1945+
);
19421946
$dummyDbi->addResult(
19431947
'SELECT `tables` FROM `PMA-storage`.`pma__favorite_custom` WHERE `username` = \'\'',
19441948
[],
19451949
);
19461950

19471951
$_SESSION['relation'] = [];
1948-
$_SESSION['tmpval'] = [];
1952+
(new ReflectionClass(Relation::class))->getProperty('cache')->setValue([]);
19491953

19501954
$relation = new Relation($dbi);
19511955
$relation->initRelationParamsCache();

0 commit comments

Comments
 (0)