Project

General

Profile

Actions

Task #103902

closed

Reduce GU::makeInstance usage in unit tests

Added by Anja Leichsenring about 1 month ago. Updated 22 days ago.

Status:
Resolved
Priority:
Should have
Category:
Tests
Target version:
-
Start date:
2024-05-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #104174: Reduce GU::makeInstance usage in functional testsResolvedAnja Leichsenring2024-06-21

Actions
Actions

Also available in: Atom PDF