From 49f44ab3c04c23fed2ff534a2341ea53af8a6441 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Feb 2026 03:18:00 +0100 Subject: [PATCH] Fix phpunit --- test/phpunit/WebsiteTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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;