mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-11 20:14:14 +01:00
N°8129 - Dont crash if date/time default value has a bad format
This commit is contained in:
@@ -1492,6 +1492,15 @@ abstract class ItopDataTestCase extends ItopTestCase
|
||||
$this->assertEquals(1, $oSet->Count(), $sMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 3.2.1
|
||||
*/
|
||||
protected function AssertLastErrorLogEntryContains(string $sNeedle, string $sMessage = ''): void
|
||||
{
|
||||
$aLastLines = self::ReadTail(APPROOT.'/log/error.log');
|
||||
$this->assertStringContainsString($sNeedle, $aLastLines[0], $sMessage);
|
||||
}
|
||||
|
||||
static protected function StartStopwatchInThePast(DBObject $oObject, string $sStopwatchAttCode, int $iDelayInSecond)
|
||||
{
|
||||
$iStartDate = time() - $iDelayInSecond;
|
||||
|
||||
Reference in New Issue
Block a user