Skip to content

Commit

Permalink
Calling the parent implementation is mandatory.
Browse files Browse the repository at this point in the history
Among other things, `parent::setUp()` will call `getExtensions()` that uses the private variables.
  • Loading branch information
corphi authored and xabbuh committed Mar 26, 2016
1 parent b20e1ca commit fba2da2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookbook/form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fba2da2

Please sign in to comment.