From fba2da2d28a85a22f2da0d082aa0062a063f9694 Mon Sep 17 00:00:00 2001 From: Philipp Cordes Date: Thu, 17 Mar 2016 22:28:57 +0100 Subject: [PATCH] Calling the parent implementation is mandatory. Among other things, `parent::setUp()` will call `getExtensions()` that uses the private variables. --- cookbook/form/unit_testing.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbook/form/unit_testing.rst b/cookbook/form/unit_testing.rst index 879ea97e1ed..5ad0aa45f14 100644 --- a/cookbook/form/unit_testing.rst +++ b/cookbook/form/unit_testing.rst @@ -133,6 +133,8 @@ make sure the ``FormRegistry`` uses the created instance:: { // mock any dependencies $this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager'); + + parent::setUp(); } protected function getExtensions()