From fc2be85c9516b52f60cc4019155d8b688beaa5c2 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 12 Dec 2023 11:25:27 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07054=20-=20:white=5Fcheck=5Fmark:=20Rewo?= =?UTF-8?q?rk=20the=20UpdateImpactedItems=20calls=20on=20Tickets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unitary-tests/core/CMDBSource/TransactionsTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php b/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php index 6a54602d6..49da26e70 100644 --- a/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php +++ b/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php @@ -83,6 +83,7 @@ class TransactionsTest extends ItopTestCase $oLinkSet = $oTicket->Get('contacts_list'); $oLinkSet->AddItem(MetaModel::NewObject('lnkContactToTicket', ['contact_id' => 6])); $oLinkSet->AddItem(MetaModel::NewObject('lnkContactToTicket', ['contact_id' => 7])); + $oTicket->Set('contacts_list', $oLinkSet); $this->oMySQLiMock->SetFailAt($iFailAt); $this->debug("---> DBInsert()"); @@ -188,7 +189,7 @@ class TransactionsTest extends ItopTestCase $oLinkSet = $oTicket->Get('contacts_list'); $oLinkSet->AddItem(MetaModel::NewObject('lnkContactToTicket', ['contact_id' => 6])); $oLinkSet->AddItem(MetaModel::NewObject('lnkContactToTicket', ['contact_id' => 7])); - //$oTicket->Set('contacts_list', $oLinkSet); + $oTicket->Set('contacts_list', $oLinkSet); $this->oMySQLiMock->SetShowRequest(false); $oTicket->DBWrite();