mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
✅ 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user