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()