Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Upgrade to typo3/testing-framework 8.x #389

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

sbuerk
Copy link
Contributor

@sbuerk sbuerk commented Dec 12, 2024

  • [TASK] Update to typo3/testing-framework version 8.x
    typo3/testing-framework supports testing against two
    TYPO3 versions per TF version and the current used 7.x
    supports only TYPO3 v11 and v12.

    After TYPO3 v11 support has been dropped, this change
    upgrades the development dependency to the next version
    and bolldozes the towards adding TYPO3 v13 as second
    supported TYPO3 version.

    Used command(s):

    composer require --dev \
      "typo3/testing-framework":"^8.2.7"
  • [TASK] Use better suiting typing in SiteBasedTestTrait
    The SiteBasedTestTrait uses AbstractInstruction to declare
    native types for method arguments and return types and PHPStan
    complains about this because typo3/testing-framework methods
    uses the InstructionInterface instead.

    This change adopts InstructionInterface type hints to be in
    line with the typo3/testing-framework and satisfy PHPStan,
    which allows us to remove no longer matched ignored errors from
    the PHPStan baseline.

    Used command(s):

    Build/Scripts/runTests.sh -t 12 -p 8.1 -s phpstanGenerateBaseline

`typo3/testing-framework` supports testing against two
TYPO3 versions per TF version and the current used 7.x
supports only TYPO3 v11 and v12.

After TYPO3 v11 support has been dropped, this change
upgrades the development dependency to the next version
and bolldozes the towards adding TYPO3 v13 as second
supported TYPO3 version.

Used command(s):

```shell
composer require --dev \
  "typo3/testing-framework":"^8.2.7"
```
The `SiteBasedTestTrait` uses `AbstractInstruction` to declare
native types for method arguments and return types and PHPStan
complains about this because `typo3/testing-framework` methods
uses the `InstructionInterface` instead.

This change adopts `InstructionInterface` type hints to be in
line with the `typo3/testing-framework` and satisfy PHPStan,
which allows us to remove no longer matched ignored errors from
the PHPStan baseline.

Used command(s):

```shell
Build/Scripts/runTests.sh -t 12 -p 8.1 -s phpstanGenerateBaseline
```
@sbuerk sbuerk merged commit bf3f529 into main Dec 12, 2024
4 checks passed
@sbuerk sbuerk deleted the testing-framework-8 branch December 12, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants