Skip to content
Snippets Groups Projects
Commit f6fda307 authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Benjamin Franzke
Browse files

[TASK] Reduce GU::makeInstance calls in Unit Tests

Additional potential functionality (DI, XClass resolving, etc.) of
GU::makeInstance is usually not a wanted behaviour in unit tests.
For creation of system under test `new` should be used.
Dependencies, if necessary, should be mocks.
This patch reduces the obvious cases, more complicated ones will
be tackled with follow ups.

Resolves: #103902
Releases: main, 12.4
Change-Id: I07cbe6f10fe11e1239cdd5f0fe7496948eed5a44
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84485


Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 5a775b87
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