From 4d49d01eec1489b202a167b0fbe127c9126c8b9f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 May 2024 12:19:57 +0200 Subject: [PATCH] Fix phpunit --- test/phpunit/SecurityTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/SecurityTest.php b/test/phpunit/SecurityTest.php index e1d339e27cd..79b82b3e1cd 100644 --- a/test/phpunit/SecurityTest.php +++ b/test/phpunit/SecurityTest.php @@ -1246,8 +1246,8 @@ class SecurityTest extends CommonClassTest { global $conf; - $sav1 = $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML; - $sav2 = $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY; + $sav1 = getDolGlobalString('MAIN_RESTRICTHTML_ONLY_VALID_HTML'); + $sav2 = getDolGlobalString('MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY'); // Test with an emoji $test = 'abc ✅ def';