From 3d98b7b1acaaa29040964564efd2a11a84daec9f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Feb 2024 17:38:10 +0100 Subject: [PATCH] Fix phpunit --- test/phpunit/WebsiteTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/WebsiteTest.php b/test/phpunit/WebsiteTest.php index cac8dcfee68..a6900654f33 100644 --- a/test/phpunit/WebsiteTest.php +++ b/test/phpunit/WebsiteTest.php @@ -88,7 +88,7 @@ class WebsiteTest extends CommonClassTest */ public function testGetPagesFromSearchCriterias() { - global $db; + global $db, $website; // We need the $website as global, it is used by the getPagesFromSearchCriterias() $website = new Website($db); // $website must be defined globally for getPagesFromSearchCriterias()