From 0208c7400c1dc4f9c8c3b9cc322c573113fcb7f6 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Mon, 27 Mar 2023 15:58:52 +0200 Subject: [PATCH] [TASK] Rename an abstract test case Rename AbstractSoftReferenceParserTest to AbstractSoftReferenceParserTestCase to prevent a phpunit 10 warning that class names ending with "Test" should not be abstract. Resolves: #100316 Related: #100249 Releases: main Change-Id: I85557a1cbda3ac96a1b9baad151cff160123819a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78271 Tested-by: core-ci <typo3@b13.com> Reviewed-by: Nikita Hovratov <nikita.h@live.de> Tested-by: Nikita Hovratov <nikita.h@live.de> --- ...ceParserTest.php => AbstractSoftReferenceParserTestCase.php} | 2 +- .../DataHandling/SoftReference/EmailSoftReferenceParserTest.php | 2 +- .../SoftReference/ExtensionPathSoftReferenceParserTest.php | 2 +- .../SoftReference/NotifySoftReferenceParserTest.php | 2 +- .../SoftReference/SubstituteSoftReferenceParserTest.php | 2 +- .../SoftReference/TypoLinkSoftReferenceParserTest.php | 2 +- .../SoftReference/TypoLinkTagSoftReferenceParserTest.php | 2 +- .../DataHandling/SoftReference/UrlSoftReferenceParserTest.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/{AbstractSoftReferenceParserTest.php => AbstractSoftReferenceParserTestCase.php} (97%) diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTestCase.php similarity index 97% rename from typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php rename to typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTestCase.php index dd70b5fa2ae6..21f1a04c3559 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTestCase.php @@ -31,7 +31,7 @@ use TYPO3\CMS\Core\DataHandling\SoftReference\UrlSoftReferenceParser; use TYPO3\CMS\Core\EventDispatcher\NoopEventDispatcher; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; -abstract class AbstractSoftReferenceParserTest extends UnitTestCase +abstract class AbstractSoftReferenceParserTestCase extends UnitTestCase { protected bool $resetSingletonInstances = true; diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/EmailSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/EmailSoftReferenceParserTest.php index 6ac88b520d64..f095b012f8da 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/EmailSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/EmailSoftReferenceParserTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\SoftReference; -class EmailSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class EmailSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { public static function emailSoftReferenceParserTestDataProvider(): array { diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/ExtensionPathSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/ExtensionPathSoftReferenceParserTest.php index 4207f4f401bd..58dc2f4a40b3 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/ExtensionPathSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/ExtensionPathSoftReferenceParserTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\SoftReference; -class ExtensionPathSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class ExtensionPathSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { public static function extensionPathSoftReferenceParserDataProvider(): array { diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/NotifySoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/NotifySoftReferenceParserTest.php index f14a8b93f985..5c58a6a3eaeb 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/NotifySoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/NotifySoftReferenceParserTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\SoftReference; -class NotifySoftReferenceParserTest extends AbstractSoftReferenceParserTest +class NotifySoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { /** * @test diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SubstituteSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SubstituteSoftReferenceParserTest.php index 4db2c78823fe..99d7451ee923 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SubstituteSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SubstituteSoftReferenceParserTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\SoftReference; -class SubstituteSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class SubstituteSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { /** * @test diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php index ce2f02633deb..9aaa3764dbe6 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php @@ -22,7 +22,7 @@ use TYPO3\CMS\Core\Resource\Folder; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; -class TypoLinkSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class TypoLinkSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { public static function findRefReturnsParsedElementsDataProvider(): array { diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkTagSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkTagSoftReferenceParserTest.php index 59511226da75..e896e252bdca 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkTagSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkTagSoftReferenceParserTest.php @@ -22,7 +22,7 @@ use TYPO3\CMS\Core\Resource\Folder; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; -class TypoLinkTagSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class TypoLinkTagSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { public static function findRefReturnsParsedElementsDataProvider(): array { diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/UrlSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/UrlSoftReferenceParserTest.php index 4a8678ad0689..d623dc4e915c 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/UrlSoftReferenceParserTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/UrlSoftReferenceParserTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\SoftReference; -class UrlSoftReferenceParserTest extends AbstractSoftReferenceParserTest +class UrlSoftReferenceParserTest extends AbstractSoftReferenceParserTestCase { public static function urlSoftReferenceParserTestDataProvider(): array { -- GitLab