mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
✅ N°5538 Make PHPUnit test fail if transaction opened but not closed
This commit is contained in:
@@ -119,12 +119,13 @@ class ItopDataTestCase extends ItopTestCase
|
||||
$this->debug("Removing $sClass::$iKey");
|
||||
$oObject->DBDelete();
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
catch (Exception $e) {
|
||||
$this->debug("Error when removing created objects : $sClass::$iKey. Exception message: ".$e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user