N°6458 Tests : remove processIsolation

Was caused by cached User instances in UserRights + same login for each created User objects instances
This commit is contained in:
Pierre Goiffon
2023-11-16 10:56:47 +01:00
parent c955fe00b7
commit 7521fc3006
2 changed files with 3 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ use TagSetFieldData;
use Ticket;
use URP_UserProfile;
use User;
use UserRights;
use utils;
use VirtualHost;
use VirtualMachine;
@@ -134,6 +135,7 @@ abstract class ItopDataTestCase extends ItopTestCase
// Leave the place clean
\UserRights::Logoff();
$this->SetNonPublicStaticProperty(UserRights::class, 'm_aCacheUsers', []);
foreach ($this->aEventListeners as $sListenerId) {
EventService::UnRegisterListener($sListenerId);