From d2c7b134548f09e513e4e71224f79febfeb08649 Mon Sep 17 00:00:00 2001 From: vdumas Date: Wed, 15 May 2024 10:37:13 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07484=20-=20UserRequest/Incident=20soluti?= =?UTF-8?q?on=20field=20supports=20HTML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/CMDBSource/TransactionsTest.php | 4 ++-- .../unitary-tests/core/CRUDEventTest.php | 2 +- .../unitary-tests/core/DBObjectTest.php | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) 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 97831c9b5..31ab95882 100644 --- a/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php +++ b/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php @@ -222,9 +222,9 @@ class TransactionsTest extends ItopTestCase // Reload from db after the update to check the value present in the database $oTicket = MetaModel::GetObject('UserRequest', $oTicket->GetKey()); if ($bIsModified) { - $this->assertEquals('Create OK', $oTicket->Get('solution')); + $this->assertEquals('

Create OK

', $oTicket->Get('solution')); } else { - $this->assertEquals('Test OK', $oTicket->Get('solution')); + $this->assertEquals('

Test OK

', $oTicket->Get('solution')); } if (!$oTicket->IsNew()) { diff --git a/tests/php-unit-tests/unitary-tests/core/CRUDEventTest.php b/tests/php-unit-tests/unitary-tests/core/CRUDEventTest.php index 0896cce75..e794a96e4 100644 --- a/tests/php-unit-tests/unitary-tests/core/CRUDEventTest.php +++ b/tests/php-unit-tests/unitary-tests/core/CRUDEventTest.php @@ -583,7 +583,7 @@ class CRUDEventTest extends ItopDataTestCase $oLnk = MetaModel::NewObject(lnkPersonToTeam::class, ['person_id' => $oPerson->GetKey(), 'team_id' => $oTeam->GetKey()]); $oLnk->DBInsert(); - $this->assertArrayNotHasKey(EVENT_DB_LINKS_CHANGED, self::$aEventCalls, 'no relation with the with_php_compute attribute !'); + $this->assertArrayNotHasKey(EVENT_DB_LINKS_CHANGED, self::$aEventCalls, 'no relation with the with_php_computation attribute !'); } public function testLinksDeleted() diff --git a/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php b/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php index 2d496de5e..58377f1af 100644 --- a/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php +++ b/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php @@ -1325,13 +1325,13 @@ class DBObjectTest extends ItopDataTestCase 'title 256 chars' => ['title', 256], 'title 300 chars' => ['title', 300], - // UserRequest.solution is an AttributeText (maxsize=65535) with format=text - 'solution 250 chars' => ['solution', 250], - 'solution 60000 chars' => ['solution', 60000], - 'solution 65534 chars' => ['solution', 65534], - 'solution 65535 chars' => ['solution', 65535], - 'solution 65536 chars' => ['solution', 65536], - 'solution 70000 chars' => ['solution', 70000], + // UserRequest.pending_reason is an AttributeText (maxsize=65535) with format=text + 'pending_reason 250 chars' => ['pending_reason', 250], + 'pending_reason 60000 chars' => ['pending_reason', 60000], + 'pending_reason 65534 chars' => ['pending_reason', 65534], + 'pending_reason 65535 chars' => ['pending_reason', 65535], + 'pending_reason 65536 chars' => ['pending_reason', 65536], + 'pending_reason 70000 chars' => ['pending_reason', 70000], ]; }