[TASK] Migrate `getMockForAbstractClass()` calls in `EXT:form`
`getMockForAbstractClass` has been (soft-)deprecated in PHPUnit 10.1: https://github.com/sebastianbergmann/phpunit/issues/5241 Hence, we should replace its usages to follow best practices and avoid deprecation warnings later with PHPUnit 11. We do this by creating dedicated fixture subclasses of the affected abstract classes. Resolves: #101661 Related: #101601 Releases: main Change-Id: I3b9ba4511620aebf125ff207428adc5483d47154 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80522 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Stefan B�rk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan B�rk <stefan@buerk.tech>
Showing
- typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractFormElementTest.php 42 additions, 132 deletions...ests/Unit/Domain/FormElements/AbstractFormElementTest.php
- typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractSectionTest.php 11 additions, 78 deletions...rm/Tests/Unit/Domain/FormElements/AbstractSectionTest.php
- typo3/sysext/form/Tests/Unit/Domain/FormElements/Fixtures/TestingFormElement.php 31 additions, 0 deletions.../Unit/Domain/FormElements/Fixtures/TestingFormElement.php
- typo3/sysext/form/Tests/Unit/Domain/FormElements/Fixtures/TestingSection.php 37 additions, 0 deletions...ests/Unit/Domain/FormElements/Fixtures/TestingSection.php
- typo3/sysext/form/Tests/Unit/Domain/Renderable/AbstractRenderableTest.php 22 additions, 22 deletions...m/Tests/Unit/Domain/Renderable/AbstractRenderableTest.php
- typo3/sysext/form/Tests/Unit/Domain/Renderable/Fixtures/TestingRenderable.php 27 additions, 0 deletions...sts/Unit/Domain/Renderable/Fixtures/TestingRenderable.php
Please register or sign in to comment