2
0
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:
Frédéric FRANCE
2025-09-01 19:21:54 +02:00
committed by GitHub
parent 44ccc0f284
commit 34498d3437
4 changed files with 93 additions and 53 deletions

View File

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