[TASK] Migrate deprecated PHPUnit 9 methods
Since the recent release of PHPUnit 9.6 some new deprecations were added which signal breaking changes for version 10. As deprecations are causing our tests to fail, they need to be addressed immediately. Method `expectErrorMessage` replaced with `expectExceptionMessage`. Method `getMockClass` replaced with `createMock` and a subsequent get_class call. Move test with deprecations to UnitDeprecated and remove expectation. Also update phpunit/phpunit and dependencies to latest version: > composer req --dev phpunit/phpunit:^9.6.1 -W Resolves: #99817 Releases: main, 11.5 Change-Id: I6d01ccca398a8ff5db735a35b19061b711c843cc Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77693 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- composer.json 1 addition, 1 deletioncomposer.json
- composer.lock 69 additions, 69 deletionscomposer.lock
- typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php 0 additions, 40 deletionstypo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php
- typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php 7 additions, 5 deletionstypo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php
- typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php 1 addition, 1 deletion...3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
- typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/DateTimeTypesTest.php 2 additions, 2 deletions...it/Database/Schema/Parser/DataTypes/DateTimeTypesTest.php
- typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php 4 additions, 4 deletions...sext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php
- typo3/sysext/core/Tests/UnitDeprecated/Cache/CacheManagerTest.php 65 additions, 0 deletions...sext/core/Tests/UnitDeprecated/Cache/CacheManagerTest.php
- typo3/sysext/extbase/Tests/Unit/Property/PropertyMappingConfigurationTest.php 6 additions, 5 deletions.../Tests/Unit/Property/PropertyMappingConfigurationTest.php
- typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php 0 additions, 37 deletions...ests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php
- typo3/sysext/fluid/Tests/FunctionalDeprecated/ViewHelpers/Format/HtmlViewHelperTest.php 0 additions, 3 deletions...ionalDeprecated/ViewHelpers/Format/HtmlViewHelperTest.php
Please register or sign in to comment