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