[TASK] Allow rector to process tests
In order to let rector process tests, the autoloading of all processed classes needs to be intact. In TYPO3 there were a bunch of classes whose namespace were a bit wrong according to PSR-4 and there were some class that didn't fit the PSR-4 standard at all. Classes that could easily be fixed have been fixed. All others have either been registered via a class map in composer.json or they have been excluded from the processing of rector. This change does not apply rector rules to tests, it only enables rector to operate on tests due to fixed autoloading. Releases: master Resolves: #89900 Change-Id: Iaa4a5bb2677a5a9af374d780423d962dcc09ade2 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62583 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- composer.json 6 additions, 1 deletioncomposer.json
- rector.yml 10 additions, 0 deletionsrector.yml
- typo3/sysext/core/Tests/Functional/Session/SessionManagerTest.php 1 addition, 1 deletion...sext/core/Tests/Functional/Session/SessionManagerTest.php
- typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php 1 addition, 1 deletion...ests/Unit/Configuration/Parser/PageTsConfigParserTest.php
- typo3/sysext/core/Tests/Unit/Pagination/ArrayPaginatorTest.php 1 addition, 1 deletion.../sysext/core/Tests/Unit/Pagination/ArrayPaginatorTest.php
- typo3/sysext/core/Tests/Unit/Pagination/SimplePaginationTest.php 1 addition, 1 deletion...ysext/core/Tests/Unit/Pagination/SimplePaginationTest.php
- typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php 1 addition, 1 deletion...sext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php
- typo3/sysext/core/Tests/Unit/TypoScript/Parser/ConstantConfigurationParserTest.php 2 additions, 1 deletion...nit/TypoScript/Parser/ConstantConfigurationParserTest.php
- typo3/sysext/core/composer.json 5 additions, 1 deletiontypo3/sysext/core/composer.json
- typo3/sysext/extbase/composer.json 3 additions, 0 deletionstypo3/sysext/extbase/composer.json
- typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php 1 addition, 1 deletion...ysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php
- typo3/sysext/fluid/composer.json 4 additions, 1 deletiontypo3/sysext/fluid/composer.json
- typo3/sysext/frontend/Tests/Functional/Imaging/GifBuilderTest.php 1 addition, 1 deletion...sext/frontend/Tests/Functional/Imaging/GifBuilderTest.php
- typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Fixtures/CodeStatisticsFixture.php 1 addition, 1 deletion...t/ExtensionScanner/Php/Fixtures/CodeStatisticsFixture.php
- typo3/sysext/redirects/Tests/Functional/Service/SlugServiceTest.php 1 addition, 1 deletion...xt/redirects/Tests/Functional/Service/SlugServiceTest.php
Please register or sign in to comment