[FLOW3-general] No Dependency injection in Tests?
Benno Weinzierl
benno_weinzierl at web.de
Mon May 7 23:50:20 CEST 2012
Thanks Sebastian,
i am relatively new to unit testing and i am still a bit confused about
when to use Unit test and when to use functional tests.
I thought because i just wanted to test a simple getter it should be a
unit test but it now works as a functional test. But only when in manually
use the ->inject method of the abstract BaseTestCase class. It is not
automatically injected or is that a user error on my part?
Thanks, Benno
Sebastian Kurfürst <sebastian at typo3.org> wrote:
> Hey Benno,
>
> that greatly depends whether you write Functional or Unit Tests.
>
> In Unit Tests, there is no Dependency Injection, but in Functional Tests
> there is.
>
> Greets, Sebastian
More information about the FLOW3-general
mailing list