mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Update tests/php-unit-tests/unitary-tests/core/AttributeSubItemTest.php
Co-authored-by: Romain Quetiez <romain.quetiez@combodo.com>
This commit is contained in:
@@ -45,7 +45,7 @@ class AttributeSubItemTest extends ItopDataTestCase
|
|||||||
$oDateTime = new DateTime();
|
$oDateTime = new DateTime();
|
||||||
$oDateTime->setTimestamp($iStartDate);
|
$oDateTime->setTimestamp($iStartDate);
|
||||||
$sDate = $oDateTime->format(AttributeDateTime::GetFormat());
|
$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('Missed by 3 min', $oAttDef->GetForTemplate($sValue, 'text', $oUserRequest));
|
||||||
self::assertEquals($iStartDate, $oAttDef->GetForTemplate($sValue, '', $oUserRequest));
|
self::assertEquals($iStartDate, $oAttDef->GetForTemplate($sValue, '', $oUserRequest));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user