Apply suggestion from @rquetiez

Co-authored-by: Romain Quetiez <romain.quetiez@combodo.com>
This commit is contained in:
Anne-Catherine
2026-03-09 13:41:03 +01:00
committed by GitHub
parent 6578868b71
commit 4ef07d41f4

View File

@@ -41,7 +41,7 @@ class AttributeSubItemTest extends ItopDataTestCase
$oDateTime->setTimestamp($iStartDate);
$sDate = $oDateTime->format(AttributeDateTime::GetFormat());
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('Missed by 3 min', $oAttDef->GetForTemplate($sValue, 'text', $oUserRequest), 'text() should render the deadline as specified in the configuration file, in parameter "deadline_format", and depending on the user language');
self::assertEquals($iStartDate, $oAttDef->GetForTemplate($sValue, '', $oUserRequest));
}
}