mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
✅ ItopDataTestCase fix using non existing EventService (added in 3.1.0)
This commit is contained in:
@@ -59,7 +59,6 @@ abstract class ItopDataTestCase extends ItopTestCase
|
||||
private $iTestOrgId;
|
||||
// For cleanup
|
||||
private $aCreatedObjects = [];
|
||||
private $aEventListeners = [];
|
||||
|
||||
/**
|
||||
* @var string Default environment to use for test cases
|
||||
@@ -137,10 +136,6 @@ abstract class ItopDataTestCase extends ItopTestCase
|
||||
\UserRights::Logoff();
|
||||
$this->SetNonPublicStaticProperty(UserRights::class, 'm_aCacheUsers', []);
|
||||
|
||||
foreach ($this->aEventListeners as $sListenerId) {
|
||||
EventService::UnRegisterListener($sListenerId);
|
||||
}
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user