[TASK] Static data providers in Tests/Unit
phpunit ^10 expects test data providers to be static. Using rector rule StaticDataProviderClassMethodRector, this bulk change adapts most of them in typo3/sysext/*/Tests/Unit. A couple of data providers use $this, those are left out for now and need to be adapted with dedicated patches since they need more refactoring. Resolves: #100264 Related: #100249 Releases: main Change-Id: I89243d5467cadfde04efe61f24e2ce568e828c6f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78222 Reviewed-by:Nikita Hovratov <nikita.h@live.de> Tested-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php 1 addition, 1 deletion...ysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php
- typo3/sysext/adminpanel/Tests/Unit/Service/ConfigurationServiceTest.php 1 addition, 1 deletion...dminpanel/Tests/Unit/Service/ConfigurationServiceTest.php
- typo3/sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php 2 additions, 2 deletions...sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php
- typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php 5 additions, 5 deletions...sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php
- typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php 3 additions, 3 deletions...kend/Tests/Unit/Controller/EditDocumentControllerTest.php
- typo3/sysext/backend/Tests/Unit/Controller/Event/ModifyNewContentElementWizardItemsEventTest.php 1 addition, 1 deletion...ler/Event/ModifyNewContentElementWizardItemsEventTest.php
- typo3/sysext/backend/Tests/Unit/Controller/File/ThumbnailControllerTest.php 2 additions, 2 deletions...nd/Tests/Unit/Controller/File/ThumbnailControllerTest.php
- typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php 2 additions, 2 deletions...ts/Unit/Controller/Wizard/SuggestWizardControllerTest.php
- typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php 1 addition, 1 deletion...ckend/Tests/Unit/Form/Element/AbstractFormElementTest.php
- typo3/sysext/backend/Tests/Unit/Form/Element/DatetimeElementTest.php 1 addition, 1 deletion...t/backend/Tests/Unit/Form/Element/DatetimeElementTest.php
- typo3/sysext/backend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php 1 addition, 1 deletion...ckend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php
- typo3/sysext/backend/Tests/Unit/Form/FieldWizard/TableListTest.php 1 addition, 1 deletion...ext/backend/Tests/Unit/Form/FieldWizard/TableListTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowDefaultAsReadonlyTest.php 1 addition, 1 deletion...orm/FormDataProvider/DatabaseRowDefaultAsReadonlyTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php 2 additions, 2 deletions...t/Form/FormDataProvider/EvaluateDisplayConditionsTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php 1 addition, 1 deletion...Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php 1 addition, 1 deletion...orm/FormDataProvider/TcaInlineExpandCollapseStateTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaJsonTest.php 1 addition, 1 deletion.../backend/Tests/Unit/Form/FormDataProvider/TcaJsonTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php 1 addition, 1 deletion...kend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php 2 additions, 2 deletions...d/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSlugTest.php 1 addition, 1 deletion.../backend/Tests/Unit/Form/FormDataProvider/TcaSlugTest.php
Please register or sign in to comment