From 94ce8346c0e52badfed09ac3817f18c2a2dc942b Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Thu, 27 Mar 2025 18:56:13 +0100 Subject: [PATCH] Fix phpunit --- test/phpunit/UserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/UserTest.php b/test/phpunit/UserTest.php index ee4704a415f..ef426c838b4 100644 --- a/test/phpunit/UserTest.php +++ b/test/phpunit/UserTest.php @@ -142,9 +142,9 @@ class UserTest extends CommonClassTest // Test everything are still same than specimen $newlocalobject = new User($db); $newlocalobject->initAsSpecimen(); - $this->changeProperties($newlocalobject); - $this->assertEquals($this->objCompare($localobject, $newlocalobject, true, array('id','socid','societe_id','specimen','note','ref','pass','pass_indatabase','pass_indatabase_crypted','pass_temp','datec','datem','datelastlogin','datepreviouslogin','flagdelsessionsbefore','iplastlogin','ippreviouslogin','trackid')), array()); // Actual, Expected + $this->changeProperties($newlocalobject); // Change some properties int $newlocalobject + $this->assertEquals($this->objCompare($localobject, $newlocalobject, true, array('array_options','id','socid','societe_id','specimen','note','ref','pass','pass_indatabase','pass_indatabase_crypted','pass_temp','datec','datem','datelastlogin','datepreviouslogin','datelastpassvalidation','flagdelsessionsbefore','iplastlogin','ippreviouslogin','trackid')), array()); // Actual, Expected return $localobject; }