From 902e2259a96536f336090287ceba539b07b6da9e Mon Sep 17 00:00:00 2001 From: XGUI Date: Tue, 4 Feb 2025 10:33:35 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08129=20=20-=20Remove=20duplicated=20test?= =?UTF-8?q?=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/BaseTestCase/ItopDataTestCase.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php index 00a0d7f05..1abfa234d 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php @@ -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) {