TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #103902
Issue Task Closed

#103902Reduce GU::makeInstance usage in unit tests

Anja Leichsenring 05/24/24, 13:37 updated 07/09/24, 15:35

Open in Forge Comment in Forge

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.

Reviews 3

  • main 84818[TASK] Reduce usage of GeneralUtility::makeInstance in functional tests Related to this issue Merged Anja Leichsenring CR +2 V +2 Hard +266 −369 06/21/24, 12:53
  • main 84386[TASK] Reduce GU::makeInstance calls in Unit Tests Resolves this issue Merged Anja Leichsenring CR +2 V +2 → 12.4 Hard +115 −179 06/04/24, 08:28
  • 12.4 84485[TASK] Reduce GU::makeInstance calls in Unit Tests Resolves this issue Merged Benjamin Franzke CR +2 V +2 → main Normal +90 −154 06/04/24, 08:26

Related issues 1

  • Task #104174Reduce GU::makeInstance usage in functional tests Related to Closed Tests v13 Anja Leichsenring 06/21/24, 11:08
Assigned to
Anja Leichsenring
Author
Anja Leichsenring
Priority
Should have
Category
Tests
TYPO3 version
13
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback