Skip to content
Snippets Groups Projects
Commit c38e0401 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[TASK] Use inject methods instead of "inject" base test method

There are numereous places where reflection is used
in our test cases to inject dependencies, however
there are methods available doing so, so the tests
can be adapted, which will speed up tests.

In addition, the $callInaccessibleMethod() function
is also replaced by the accessible mock functionality,
resulting in faster results than reflection.

Resolves: #89824
Releases: master
Change-Id: Ia2fc8a8ee4d3b5fc7b0d2de8759a7e5e9ceb7b87
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62503


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent e219e2cf
Branches
Tags
No related merge requests found
Showing
with 87 additions and 100 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