From cf8e03c069ff76f900a14e90615a46ecf72fd977 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Thu, 13 Apr 2023 16:30:45 +0200 Subject: [PATCH] Fix phpunit/FilesLibTest: remove syslog property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit cfff62c2faed47dc5d355f3a22035a59f05b5ad0 removed $conf->syslog usage, but this file was left of as-is. Fix a warning on the test: Files Lib ✔ Dol basename ✔ Dol count nb of line ✔ Dol is file dir ✔ Dol other ✔ Dol mime type ✔ Dol delete dir ✔ Dol copy move delete ✘ Dol compress un compress ┐ ├ Error: Attempt to assign property "enabled" on null │ │ /home/alexandre/workspace/dolibarr/test/phpunit/FilesLibTest.php:421 ┴ ✔ Dol check secure access document ✔ Dol dir move --- test/phpunit/FilesLibTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/phpunit/FilesLibTest.php b/test/phpunit/FilesLibTest.php index 3af5c36023a..520e1888899 100644 --- a/test/phpunit/FilesLibTest.php +++ b/test/phpunit/FilesLibTest.php @@ -418,7 +418,6 @@ class FilesLibTest extends PHPUnit\Framework\TestCase dol_mkdir($conf->admin->dir_temp); $conf->global->MAIN_ENABLE_LOG_TO_HTML=1; - $conf->syslog->enabled=1; $conf->modules['syslog'] = 'syslog'; $_REQUEST['logtohtml']=1; $conf->logbuffer=array(); @@ -450,7 +449,6 @@ class FilesLibTest extends PHPUnit\Framework\TestCase dol_mkdir($conf->admin->dir_temp); $conf->global->MAIN_ENABLE_LOG_TO_HTML=1; - $conf->syslog->enabled=1; $conf->modules['syslog'] = 'syslog'; $_REQUEST['logtohtml']=1; $conf->logbuffer=array();