Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Avoid incomplete setup in ExtensionStatusTest
Since PHP 8.1 passing null as first argument ($format) has been deprecated. LanguageService uses 'sprintf()' for formatting messages. In normal instances LanguageService would return translated keys, or at least an empty string. Tests in ExtensionStatusTest has been mocking the LanguageService, without correctly mocking some methods, thus return null on translation. This leads to 'sprintf()' calls with null instead of empty strings, thus spawning these depcrecation messages. This patch add mocks for some methods of the LanguageService mock to avoid these messages. Resolves: #95739 Releases: master Change-Id: Ie922dc1b30b05ff482d117c1219a372b3da0e997 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71942 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 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