A better illustration to show that the impact is propagated in one way

This commit is contained in:
Romain Quetiez
2024-10-18 17:29:50 +02:00
parent 9b651c2451
commit 015ff8f179

View File

@@ -79,21 +79,18 @@ class UpdateImpactedItemsTest extends ItopDataTestCase
{
/**
* Server1 +----> Hypervisor1
* Server2 +----> Hypervisor1
*/
$this->GivenCITreeInDB(<<<EOF
Hypervisor_1 -> Server_1
Hypervisor_1 -> Server_2
EOF);
$oTicket = $this->GivenTicketWithCIsOrPersons([
'Server_1' => 'manual'
'Hypervisor_1' => 'manual'
]);
$oTicket->UpdateImpactedItems(); // impact analysis
$this->assertCIsOrPersonsListEquals($oTicket, [
'Server_1' => 'manual',
'Hypervisor_1' => 'computed'
'Hypervisor_1' => 'manual',
]);
}