Raise to TYPO3 v13.2

This commit is contained in:
Daniel Siepmann 2024-07-02 18:07:03 +02:00
parent 7bd3cfa308
commit 90985b08b1
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
8 changed files with 36 additions and 24 deletions

View file

@ -114,10 +114,10 @@ jobs:
typo3-version: '^12.4'
- db-version: '8'
php-version: '8.2'
typo3-version: '13.1'
typo3-version: '^13.2'
- db-version: '8'
php-version: '8.3'
typo3-version: '13.1'
typo3-version: '^13.2'
steps:
- uses: actions/checkout@v3
@ -167,9 +167,9 @@ jobs:
- php-version: '8.3'
typo3-version: '^12.4'
- php-version: '8.2'
typo3-version: '13.1'
typo3-version: '^13.2'
- php-version: '8.3'
typo3-version: '13.1'
typo3-version: '^13.2'
steps:
- uses: actions/checkout@v3

View file

@ -4,7 +4,7 @@
Breaking
--------
* Support TYPO3 v13.1, drop v11.
* Drop support for TYPO3 v11.
We only support last two TYPO3 versions.
* Drop `ext_emconf.php` this probably will remove support for none composer setups.
@ -12,7 +12,7 @@ Breaking
Features
--------
* Add Support for TYPO3 v13.1.
* Add Support for TYPO3 v13.
Fixes
-----

View file

@ -1,8 +0,0 @@
V11
===
Remove TCA fallback wrapped in version constraint in:
- ``Configuration/TCA/tx_tracking_pageview.php``
- ``Configuration/TCA/tx_tracking_recordview.php``

View file

@ -0,0 +1,4 @@
V12
===
Remove `new DataHandler()` calls.

View file

@ -56,7 +56,7 @@ final class Typo3FeaturesTest extends AbstractFunctionalTestCase
#[Test]
public function copyContainingRecords(): void
{
$dataHandler = new DataHandler();
$dataHandler = $this->createDataHandler();
$dataHandler->start([], [
'pages' => [
1 => [
@ -76,7 +76,7 @@ final class Typo3FeaturesTest extends AbstractFunctionalTestCase
#[Test]
public function copyCustomTablesViaDataHandler(): void
{
$dataHandler = new DataHandler();
$dataHandler = $this->createDataHandler();
$dataHandler->copyWhichTables = 'pages,tx_tracking_pageview,tx_tracking_recordview';
$dataHandler->start([], [
'pages' => [
@ -92,4 +92,14 @@ final class Typo3FeaturesTest extends AbstractFunctionalTestCase
'EXT:tracking/Tests/Functional/ExpectedResults/Typo3FeaturesTest/CopyPasteContainingRecords.csv'
);
}
private function createDataHandler(): DataHandler
{
// Prior TYPO3 v13.2
if ($this->has(DataHandler::class) === false) {
return new DataHandler();
}
return $this->get(DataHandler::class);
}
}

View file

@ -28,15 +28,15 @@
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-mbstring": "*",
"doctrine/dbal": "^2.12 || ^3.3 || 4.0.0-RC2",
"doctrine/dbal": "^2.12 || ^3.3 || ^4.0",
"psr/http-message": "^1.0",
"psr/http-server-handler": "^1.0",
"psr/http-server-middleware": "^1.0",
"symfony/console": "^5.2 || ^6.1 || ^7.0",
"symfony/expression-language": "^5.2 || ^6.1 || ^7.0",
"typo3/cms-backend": "^12.4 || ^13.1",
"typo3/cms-core": "^12.4 || ^13.1",
"typo3/cms-dashboard": "^12.4 || ^13.1"
"typo3/cms-backend": "^12.4 || ^13.2",
"typo3/cms-core": "^12.4 || ^13.2",
"typo3/cms-dashboard": "^12.4 || ^13.2"
},
"require-dev": {
"codappix/typo3-php-datasets": "^1.5",
@ -45,8 +45,8 @@
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.1",
"saschaegerer/phpstan-typo3": "dev-add-typo3-13_1-support",
"typo3/testing-framework": "^8.0"
"saschaegerer/phpstan-typo3": "^1.10",
"typo3/testing-framework": "^8.0.9"
},
"minimum-stability": "dev",
"prefer-stable": true,

View file

@ -0,0 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Class TYPO3\\\\CMS\\\\Core\\\\DataHandling\\\\DataHandler constructor invoked with 0 parameters, 14 required\\.$#"
count: 1
path: Tests/Functional/Typo3FeaturesTest.php

View file

@ -5,7 +5,7 @@ parameters:
paths:
- Classes
- Tests
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: true
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.iterableValue
- '#^Variable \$_EXTKEY might not be defined\.$#'