[TASK] Use the proper interface with willReturnCallback in EXT:core tests
- use parameter and return type declarations - use the same parameter names as in the mocked method - drop useless `self::anything()` calls - drop `self::isType()` calls that duplicate the native type declarations This improves code readability and type safety in the tests. Resolves: #100314 Releases: main Change-Id: Icc572eb327b09b05f8637a7d91eb7bc7188344be Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78269 Tested-by:core-ci <typo3@b13.com> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
Nikita Hovratov <nikita.h@live.de>
Showing
- typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php 2 additions, 2 deletions...sts/Unit/Authentication/BackendUserAuthenticationTest.php
- typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php 44 additions, 44 deletions.../Unit/Database/Query/Expression/ExpressionBuilderTest.php
- typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php 6 additions, 6 deletions...ysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php
- typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php 3 additions, 3 deletions...sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php
- typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php 4 additions, 4 deletions...atabase/Query/Restriction/AbstractRestrictionTestCase.php
- typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php 3 additions, 3 deletions...xt/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php
- typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php 3 additions, 3 deletions...ext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php
- typo3/sysext/core/Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php 1 addition, 2 deletions...Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php
- typo3/sysext/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php 5 additions, 5 deletions...t/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php
- typo3/sysext/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php 2 additions, 2 deletions...xt/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php
- typo3/sysext/core/Tests/Unit/Page/ImportMapTest.php 3 additions, 3 deletionstypo3/sysext/core/Tests/Unit/Page/ImportMapTest.php
- typo3/sysext/core/Tests/UnitDeprecated/Configuration/Parser/PageTsConfigParserTest.php 1 addition, 1 deletion...eprecated/Configuration/Parser/PageTsConfigParserTest.php
Please register or sign in to comment