I'm writing phpspec test for controller In action I am calling another method with this:
$this->getDoctrine()->getManager()->createQueryBuilder();
I cannot pass this in phpspec. What I'm getting is
method
Double\ObjectManager\P7::createQueryBuilder()
is not defined
Have you got any suggestion how to spec it?