DoctrineORMModule has a fairly simple test setup -
https://github.com/doctrine/DoctrineORMModule/tree/master/tests

Following is my old setup: https://gist.github.com/Ocramius/3994325 -
please note the part about getting the fixture loader

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 25 June 2013 22:03, Jigal sanders <[email protected]> wrote:

> Hello,
>
> I am new to unit testing. Trying my very best to learn it.
>
> Now I am trying to build a web application with Doctrine.
> In my controller i have  the Entitymanager
>
>
> In order to test some of my controller actions I am in need of the entity
> manager.
>
> My question is how to mock my entity manager into my test objects. I
> obiously need to do something with my DIC.
>
> Can anyone please give me a direction?
>
> Thanks
>
> J. Sanders
>

Reply via email to