mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-22 05:56:08 +01:00
Raise to TYPO3 v13.2
This commit is contained in:
parent
7bd3cfa308
commit
90985b08b1
8 changed files with 36 additions and 24 deletions
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
-----
|
||||
|
|
|
@ -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``
|
4
Documentation/Maintenance/v12.rst
Normal file
4
Documentation/Maintenance/v12.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
V12
|
||||
===
|
||||
|
||||
Remove `new DataHandler()` calls.
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
|
@ -5,7 +5,7 @@ parameters:
|
|||
paths:
|
||||
- Classes
|
||||
- Tests
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: true
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
ignoreErrors:
|
||||
- identifier: missingType.iterableValue
|
||||
- '#^Variable \$_EXTKEY might not be defined\.$#'
|
||||
|
|
Loading…
Reference in a new issue