Skip to content

Commit

Permalink
[TASK] Update invalid test data providers
Browse files Browse the repository at this point in the history
Backport of https://review.typo3.org/c/Packages/TYPO3.CMS/+/83155
to TYPO3 v12.

PHPUnit 10.5.18 introduces deprecation warning due to
use of non-matching parameter names with data providers,
introduced by sebastianbergmann/phpunit#5812.

This patch backports changes that were made for PHPUnit v11 support,
which also addresses these kind of deprecation warnings too.

Resolves: #103634
Related: #103222
Releases: 12.4
Change-Id: Ia9a1f7c5d62894dc80b3d1f9b465fb488b3250fc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83788
Tested-by: Anja Leichsenring <[email protected]>
Reviewed-by: Anja Leichsenring <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Tested-by: core-ci <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
  • Loading branch information
lolli42 authored and sbuerk committed Apr 15, 2024
1 parent 37b29f3 commit a364507
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Tests/Unit/Utility/StateUtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,20 @@ public static function tsConfigDisabledDataProvider(): array
[],
],
'all modules disabled' => [
'admPanel.' => [
'enable.' => [
'all' => 0,
[
'admPanel.' => [
'enable.' => [
'all' => 0,
],
],
],
],
'single module configured, disabled' => [
'admPanel.' => [
'enable.' => [
'preview' => 0,
[
'admPanel.' => [
'enable.' => [
'preview' => 0,
],
],
],
],
Expand Down

0 comments on commit a364507

Please sign in to comment.