N°8129 - Remove duplicated test method

This commit is contained in:
XGUI
2025-02-04 10:33:35 +01:00
parent b87fb65ac4
commit 902e2259a9

View File

@@ -992,6 +992,10 @@ abstract class ItopDataTestCase extends ItopTestCase
}
}
/**
* @since 3.2.1
*/
protected function AssertLastErrorLogEntryContains(string $sNeedle, string $sMessage = ''): void
{
$aLastLines = self::ReadTail(APPROOT.'/log/error.log');
@@ -1500,14 +1504,6 @@ 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)
{