diff --git a/test/phpunit/WebsiteTest.php b/test/phpunit/WebsiteTest.php index 0bdfdb5ca44..c909b4abe8f 100644 --- a/test/phpunit/WebsiteTest.php +++ b/test/phpunit/WebsiteTest.php @@ -134,6 +134,10 @@ class WebsiteTest extends CommonClassTest { global $conf, $user; + // Force allow of PHP in website from main setup + global $dolibarr_website_allow_custom_php; + $dolibarr_website_allow_custom_php = 1; + // Force permission so this is not the permission that will affect result of checkPHPCode $user->rights->website->writephp = 1;