[TASK] Mock interfaces instead of abstract classes
`getMockForAbstractClass` has been (soft-)deprecated in PHPUnit 10.1: https://github.com/sebastianbergmann/phpunit/issues/5241 Hence, we should replace its usages to follow current best practices. This changes tackles the classes where we can mock an interface instead of an abstract class, allowing us to use `createMock` instead of `getMockForAbstractClass`. Resolves: #101609 Related: #101601 Releases: main, 12.4 Change-Id: I995f70d779a1bc6251bc4479c3dcb2ee548314f1 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80455 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan B�rk <stefan@buerk.tech> Tested-by:
Stefan B�rk <stefan@buerk.tech>
Showing
- typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php 2 additions, 2 deletions...xt/core/Tests/Functional/Resource/ResourceStorageTest.php
- typo3/sysext/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php 5 additions, 6 deletions...xt/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php
- typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php 3 additions, 3 deletions...sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php
- typo3/sysext/fluid/Tests/Unit/View/TemplatePathsTest.php 3 additions, 3 deletionstypo3/sysext/fluid/Tests/Unit/View/TemplatePathsTest.php
- typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php 2 additions, 2 deletions...ts/Unit/Mvc/Property/PropertyMappingConfigurationTest.php
Please register or sign in to comment