Update tests/php-unit-tests/unitary-tests/core/AttributeSubItemTest.php

Co-authored-by: Romain Quetiez <romain.quetiez@combodo.com>
This commit is contained in:
Anne-Catherine
2026-03-09 12:32:22 +01:00
committed by GitHub
parent ca2fbb9438
commit b4bfa286ea

View File

@@ -45,7 +45,7 @@ class AttributeSubItemTest extends ItopDataTestCase
$oDateTime = new DateTime();
$oDateTime->setTimestamp($iStartDate);
$sDate = $oDateTime->format(AttributeDateTime::GetFormat());
self::assertEquals($sDate, $oAttDef->GetForTemplate($sValue, 'label', $oUserRequest));
self::assertEquals($sDate, $oAttDef->GetForTemplate($sValue, 'label', $oUserRequest), 'label() should render the date in the format specified in the configuration file, in parameter "date_and_time_format"');
self::assertEquals('Missed by 3 min', $oAttDef->GetForTemplate($sValue, 'text', $oUserRequest));
self::assertEquals($iStartDate, $oAttDef->GetForTemplate($sValue, '', $oUserRequest));
}