Skip to content
Snippets Groups Projects
Commit 4475027b authored by Oliver Klee's avatar Oliver Klee Committed by Nikita Hovratov
Browse files

[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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 09ed3ccd
Showing
with 77 additions and 78 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment