mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-28 06:34:14 +01:00
N°7348 - Enable to param maximum depth of impact analysis in function Ticket::UpdateImpactedItems (#633)
This commit is contained in:
@@ -1199,6 +1199,27 @@ abstract class ItopDataTestCase extends ItopTestCase
|
||||
return $sId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an Application Solution in database
|
||||
*
|
||||
* @param int $iNum
|
||||
* @param string $sRedundancy
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function GivenApplicationSolutionInDB($iNum, $sRedundancy = '1'): string
|
||||
{
|
||||
$sName = 'ApplicationSolution_'.$iNum;
|
||||
$sId = $this->GivenObjectInDB('ApplicationSolution', [
|
||||
'name' => $sName,
|
||||
'org_id' => $this->getTestOrgId(),
|
||||
'redundancy' => $sRedundancy,
|
||||
]);
|
||||
$this->debug("Created $sName ($sId) redundancy $sRedundancy");
|
||||
|
||||
return $sId;
|
||||
}
|
||||
|
||||
protected function GivenServerInDB($iNum, $iRackUnit = null): string
|
||||
{
|
||||
$sName = 'Server_'.$iNum;
|
||||
@@ -1255,6 +1276,18 @@ abstract class ItopDataTestCase extends ItopTestCase
|
||||
return $sId;
|
||||
}
|
||||
|
||||
protected function GivenLnkApplicationSolutionToFunctionalCIInDB($sApplicationSolutionId, $sCIId): string
|
||||
{
|
||||
$sClass = 'lnkApplicationSolutionToFunctionalCI';
|
||||
$sId = $this->GivenObjectInDB($sClass, [
|
||||
'applicationsolution_id' => $sApplicationSolutionId,
|
||||
'functionalci_id' => $sCIId,
|
||||
]);
|
||||
$this->debug("Created $sClass::$sId linking ApplicationSolution $sApplicationSolutionId and CI $sCIId");
|
||||
|
||||
return $sId;
|
||||
}
|
||||
|
||||
protected function GivenVirtualMachineInDB($iNum, $sVirtualHostId): string
|
||||
{
|
||||
$sName = 'VirtualMachine_'.$iNum;
|
||||
|
||||
Reference in New Issue
Block a user