Fix phpunit

This commit is contained in:
Laurent Destailleur 2024-02-17 17:38:10 +01:00
parent 193a3717b4
commit 3d98b7b1ac

View File

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