Issue Task Closed

#87742Use real ObjectManager stubs in unit tests

Benjamin Franzke 02/19/19, 12:19 updated 07/08/19, 14:00

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.

Reviews 2