mirror of
https://github.com/Codappix/typo3-php-datasets.git
synced 2024-12-05 03:16:10 +01:00
Add Support for TYPO3 v12.4 (#6)
This commit is contained in:
parent
65efed087a
commit
2d06b324e4
6 changed files with 27 additions and 11 deletions
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
@ -121,6 +121,12 @@ jobs:
|
||||||
- db-version: '8'
|
- db-version: '8'
|
||||||
php-version: '8.2'
|
php-version: '8.2'
|
||||||
typo3-version: '^11.5'
|
typo3-version: '^11.5'
|
||||||
|
- db-version: '8'
|
||||||
|
php-version: '8.1'
|
||||||
|
typo3-version: '^12.4'
|
||||||
|
- db-version: '8'
|
||||||
|
php-version: '8.2'
|
||||||
|
typo3-version: '^12.4'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -177,6 +183,10 @@ jobs:
|
||||||
typo3-version: '^11.5'
|
typo3-version: '^11.5'
|
||||||
- php-version: '8.2'
|
- php-version: '8.2'
|
||||||
typo3-version: '^11.5'
|
typo3-version: '^11.5'
|
||||||
|
- php-version: '8.1'
|
||||||
|
typo3-version: '^12.4'
|
||||||
|
- php-version: '8.2'
|
||||||
|
typo3-version: '^12.4'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Upcoming
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add Support for TYPO3 v12.4.
|
||||||
|
|
||||||
## v1.2.0 - 2023-05-04
|
## v1.2.0 - 2023-05-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Codappix\Typo3PhpDatasets;
|
namespace Codappix\Typo3PhpDatasets;
|
||||||
|
|
||||||
use Doctrine\DBAL\DBALException;
|
use Exception;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,8 +38,8 @@ trait TestingFramework
|
||||||
$dataSet = include $filePath;
|
$dataSet = include $filePath;
|
||||||
try {
|
try {
|
||||||
(new PhpDataSet())->import($dataSet);
|
(new PhpDataSet())->import($dataSet);
|
||||||
} catch (DBALException $e) {
|
} catch (Exception $e) {
|
||||||
self::fail('SQL Error for PHP data-set "' . $filePath . '":' . PHP_EOL . $e->getMessage());
|
self::fail('Error for PHP data-set "' . $filePath . '":' . PHP_EOL . $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,10 +79,10 @@ class ImportTest extends AbstractFunctionalTestCase
|
||||||
public function failsIfSqlError(): void
|
public function failsIfSqlError(): void
|
||||||
{
|
{
|
||||||
$this->expectException(AssertionFailedError::class);
|
$this->expectException(AssertionFailedError::class);
|
||||||
$this->expectExceptionMessage(
|
$this->expectExceptionMessageMatches(
|
||||||
'SQL Error for PHP data-set "' . __DIR__ . '/Fixtures/WithBrokenSql.php":'
|
'#Error for PHP data-set "' . __DIR__ . '/Fixtures/WithBrokenSql.php":'
|
||||||
. PHP_EOL
|
. PHP_EOL
|
||||||
. 'There is no column with name \'none_existing_column\' on table \'pages\'.'
|
. 'There is no column with name .*none_existing_column.* on table .*pages.*\.#'
|
||||||
);
|
);
|
||||||
$this->importPHPDataSet(__DIR__ . '/Fixtures/WithBrokenSql.php');
|
$this->importPHPDataSet(__DIR__ . '/Fixtures/WithBrokenSql.php');
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,16 +25,16 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1 || ^8.2",
|
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1 || ^8.2",
|
||||||
"composer-runtime-api": "^2.2",
|
"composer-runtime-api": "^2.2",
|
||||||
"doctrine/dbal": "^2.13",
|
"doctrine/dbal": "^2.13 || ^3.6",
|
||||||
"symfony/console": "^5.4",
|
"symfony/console": "^5.4 || ^6.2",
|
||||||
"typo3/cms-core": "^10.4 || ^11.5"
|
"typo3/cms-core": "^10.4 || ^11.5 || ^12.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^3.4",
|
"friendsofphp/php-cs-fixer": "^3.4",
|
||||||
"phpstan/phpstan": "^1.10",
|
"phpstan/phpstan": "^1.10",
|
||||||
"phpstan/phpstan-phpunit": "^1.3",
|
"phpstan/phpstan-phpunit": "^1.3",
|
||||||
"phpunit/phpunit": "^8.5 || ^9.6",
|
"phpunit/phpunit": "^8.5 || ^9.6",
|
||||||
"typo3/testing-framework": "^6.16"
|
"typo3/testing-framework": "^6.16 || ^7.0"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"typo3/cms": {
|
"typo3/cms": {
|
||||||
|
|
|
@ -6,5 +6,5 @@ parameters:
|
||||||
- Classes
|
- Classes
|
||||||
- Tests
|
- Tests
|
||||||
checkMissingIterableValueType: false
|
checkMissingIterableValueType: false
|
||||||
reportUnmatchedIgnoredErrors: true
|
reportUnmatchedIgnoredErrors: false
|
||||||
checkGenericClassInNonGenericObjectType: false
|
checkGenericClassInNonGenericObjectType: false
|
||||||
|
|
Loading…
Reference in a new issue