From c5febc2d1d07b1431d3b7f4dfb6bffb65cd4f89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Lochm=C3=BCller?= Date: Wed, 20 Nov 2024 21:50:52 +0100 Subject: [PATCH] Allow TYPo3 v13 in tests --- .github/workflows/Test.yml | 3 ++ .../Unit/Handler/JsonDetectionHandlerTest.php | 7 ++++ composer.json | 6 +-- rector.php | 42 ------------------- 4 files changed, 11 insertions(+), 47 deletions(-) delete mode 100644 rector.php diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index a456fc6..07e28a0 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -7,6 +7,9 @@ jobs: matrix: php: ["8.1", "8.2", "8.3"] typo3: ["^12.4", "^13.4"] + exclude: + - php: "8.1" + typo3: "^13.4" runs-on: ubuntu-latest steps: - name: Checkout diff --git a/Tests/Unit/Handler/JsonDetectionHandlerTest.php b/Tests/Unit/Handler/JsonDetectionHandlerTest.php index ace96fc..c755a1c 100644 --- a/Tests/Unit/Handler/JsonDetectionHandlerTest.php +++ b/Tests/Unit/Handler/JsonDetectionHandlerTest.php @@ -64,6 +64,13 @@ public function testInvalidPath(): void * @covers \Lochmueller\LanguageDetection\Handler\JsonDetectionHandler * @covers \Lochmueller\LanguageDetection\Negotiation\DefaultNegotiation * @covers \Lochmueller\LanguageDetection\Response\DefaultResponse + * @covers \Lochmueller\LanguageDetection\Detect\MaxMindDetect + * @covers \Lochmueller\LanguageDetection\Domain\Collection\LocaleCollection + * @covers \Lochmueller\LanguageDetection\Domain\Model\Dto\LocaleValueObject + * @covers \Lochmueller\LanguageDetection\Event\NegotiateSiteLanguageEvent + * @covers \Lochmueller\LanguageDetection\Service\LanguageService + * @covers \Lochmueller\LanguageDetection\Service\LocaleCollectionSortService + * @covers \Lochmueller\LanguageDetection\Service\Normalizer * @see https://github.com/lochmueller/language_detection/issues/34 */ public function testIssue34ResultOfHeaderAndMaxmindUsMatchLanguages(): void diff --git a/composer.json b/composer.json index 7535ab0..80c7fcd 100755 --- a/composer.json +++ b/composer.json @@ -37,10 +37,9 @@ "typo3/testing-framework": "^8.2", "friendsofphp/php-cs-fixer": "^3.11", "phpstan/phpstan": "^1.8", - "infection/infection": "^0.26", + "infection/infection": "^0.29", "qossmic/deptrac-shim": "^0.24||^1.0", "geoip2/geoip2": "^2.13", - "ssch/typo3-rector": "^2.10", "phpstan/extension-installer": "^1.2" }, "optimize-autoloader": true, @@ -72,9 +71,6 @@ "@code:php-cs-fixer", "@code:phpstan" ], - "code:rector": [ - "rector" - ], "code:deptrac": [ "deptrac" ], diff --git a/rector.php b/rector.php deleted file mode 100644 index 6ad193b..0000000 --- a/rector.php +++ /dev/null @@ -1,42 +0,0 @@ -import(Typo3LevelSetList::UP_TO_TYPO3_13); - $config->import(SetList::CODE_QUALITY); - $config->import(SetList::TYPE_DECLARATION); - $config->import(LevelSetList::UP_TO_PHP_81); - - $config->paths([ - 'ext_emconf.php', - 'composer.json', - __DIR__ . '/Classes/', - __DIR__ . '/Configuration/', - __DIR__ . '/Tests/', - ]); - - $config->skip([ - NameImportingPostRector::class => [ - 'ext_emconf.php', - 'ext_localconf.php', - 'ext_tables.php', - ], - ]); -};