forked from Wavyzz/dolibarr
fetch greatest tms for user and fix user creation and modification (#35145)
* fetch greatest tms for user and fix user creation and modification * fetch greatest tms for user and fix user creation and modification * fetch greatest tms for user and fix user creation and modification * fetch greatest tms for user and fix user creation and modification * fetch greatest tms for user and fix user creation and modification * fetch greatest tms for user and fix user creation and modification
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/* Copyright (C) 2010-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
/* Copyright (C) 2010-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -144,7 +144,38 @@ class UserTest extends CommonClassTest
|
||||
$newlocalobject->initAsSpecimen();
|
||||
$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
|
||||
$this->assertEquals(
|
||||
$this->objCompare( // Actual, Expected
|
||||
$localobject,
|
||||
$newlocalobject,
|
||||
true,
|
||||
array(
|
||||
'array_options',
|
||||
'id',
|
||||
'socid',
|
||||
'societe_id',
|
||||
'specimen',
|
||||
'statut',
|
||||
'user_modification_id',
|
||||
'note',
|
||||
'ref',
|
||||
'pass',
|
||||
'pass_indatabase',
|
||||
'pass_indatabase_crypted',
|
||||
'pass_temp',
|
||||
'datec',
|
||||
'datem',
|
||||
'datelastlogin',
|
||||
'datepreviouslogin',
|
||||
'datelastpassvalidation',
|
||||
'flagdelsessionsbefore',
|
||||
'iplastlogin',
|
||||
'ippreviouslogin',
|
||||
'trackid'
|
||||
)
|
||||
),
|
||||
array()
|
||||
);
|
||||
return $localobject;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user