2
0
forked from Wavyzz/dolibarr

Fix phpunit

This commit is contained in:
ldestailleur
2025-03-27 18:56:13 +01:00
parent 8e23f51959
commit 94ce8346c0

View File

@@ -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;
}