Skip to content

Commit a364507

Browse files
lolli42sbuerk
authored andcommitted
[TASK] Update invalid test data providers
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 <aleichsenring@ab-softlab.de> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
1 parent 37b29f3 commit a364507

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Tests/Unit/Utility/StateUtilityTest.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,20 @@ public static function tsConfigDisabledDataProvider(): array
8484
[],
8585
],
8686
'all modules disabled' => [
87-
'admPanel.' => [
88-
'enable.' => [
89-
'all' => 0,
87+
[
88+
'admPanel.' => [
89+
'enable.' => [
90+
'all' => 0,
91+
],
9092
],
9193
],
9294
],
9395
'single module configured, disabled' => [
94-
'admPanel.' => [
95-
'enable.' => [
96-
'preview' => 0,
96+
[
97+
'admPanel.' => [
98+
'enable.' => [
99+
'preview' => 0,
100+
],
97101
],
98102
],
99103
],

0 commit comments

Comments
 (0)