ItopDataTestCase fix using non existing EventService (added in 3.1.0)

This commit is contained in:
Pierre Goiffon
2023-11-16 11:23:07 +01:00
parent 47ccd7589f
commit a23d629e31

View File

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