From 2dd7b751a1bddf5925de99221089a168d024b87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 11 Apr 2023 19:18:23 -0300 Subject: [PATCH] Fix failing RelationTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- test/classes/ConfigStorage/RelationTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/classes/ConfigStorage/RelationTest.php b/test/classes/ConfigStorage/RelationTest.php index 8de291d837..7ad2610fee 100644 --- a/test/classes/ConfigStorage/RelationTest.php +++ b/test/classes/ConfigStorage/RelationTest.php @@ -1939,13 +1939,17 @@ class RelationTest extends AbstractTestCase ['NULL'], ); + $dummyDbi->addResult( + 'SELECT `tables` FROM `PMA-storage`.`pma__favorite_custom` WHERE `username` = \'\'', + [], + ); $dummyDbi->addResult( 'SELECT `tables` FROM `PMA-storage`.`pma__favorite_custom` WHERE `username` = \'\'', [], ); $_SESSION['relation'] = []; - $_SESSION['tmpval'] = []; + (new ReflectionClass(Relation::class))->getProperty('cache')->setValue([]); $relation = new Relation($dbi); $relation->initRelationParamsCache();