Project

General

Profile

Actions

Task #87742

closed

Epic #83968: PSR-11 Initiative

Use real ObjectManager stubs in unit tests

Added by Benjamin Franzke about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2019-02-19
Due date:
% Done:

100%

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

Description

Prevent invocation of the constructor (which instantiates
an internal instance of the extbase container) and do not
mix usage of mocked and stubbed methods.

The mixture happened due to using setMethods(['get']) – where
all other methods (besides 'get()') are actually proxied to the
real ObjectManager.

Actions

Also available in: Atom PDF