mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phpunit
This commit is contained in:
parent
193a3717b4
commit
3d98b7b1ac
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user