-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[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
Showing
13 changed files
with
163 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,53 +26,53 @@ public static function emailSoftReferenceParserTestDataProvider(): array | |
{ | ||
return [ | ||
'Simple email address found' => [ | ||
'[email protected]', | ||
'content' => '[email protected]', | ||
'elements' => [ | ||
'expectedContent' => '[email protected]', | ||
'expectedElements' => [ | ||
2 => [ | ||
'matchString' => '[email protected]', | ||
], | ||
], | ||
'hasMatched' => true, | ||
'expectedHasMatched' => true, | ||
], | ||
'Multiple email addresses found' => [ | ||
'This is my first email: [email protected] and this is my second email: [email protected]', | ||
'content' => 'This is my first email: [email protected] and this is my second email: [email protected]', | ||
'elements' => [ | ||
'expectedContent' => 'This is my first email: [email protected] and this is my second email: [email protected]', | ||
'expectedElements' => [ | ||
2 => [ | ||
'matchString' => '[email protected]', | ||
], | ||
5 => [ | ||
'matchString' => '[email protected]', | ||
], | ||
], | ||
'hasMatched' => true, | ||
'expectedHasMatched' => true, | ||
], | ||
'Invalid emails are ignored' => [ | ||
'[email protected] | ||
'content' => '[email protected] | ||
[email protected] | ||
[email protected] | ||
abc#[email protected] | ||
[email protected] | ||
abc.def@mail#archive.com | ||
abc.def@mail | ||
[email protected]', | ||
'content' => '', | ||
'elements' => [], | ||
'hasMatched' => false, | ||
'expectedContent' => '', | ||
'expectedElements' => [], | ||
'expectedHasMatched' => false, | ||
], | ||
'E-Mails in html match' => [ | ||
'<a href="mailto:[email protected]">[email protected]</a>', | ||
'content' => '<a href="mailto:[email protected]">[email protected]</a>', | ||
'elements' => [ | ||
'expectedContent' => '<a href="mailto:[email protected]">[email protected]</a>', | ||
'expectedElements' => [ | ||
2 => [ | ||
'matchString' => '[email protected]', | ||
], | ||
5 => [ | ||
'matchString' => '[email protected]', | ||
], | ||
], | ||
'hasMatched' => true, | ||
'expectedHasMatched' => true, | ||
], | ||
]; | ||
} | ||
|
Oops, something went wrong.