zendframework/zf2-documentation — pull request #1143 by rettal (2013-11-14 19:53:27+00:00)
Title: Unit Testing Code Snippet

I have added a sentence and snippet of code to inform the user that they will need to mock out the getAlbum() method of AlbumTable as you get the following error otherwise: (may help someone)

1) AlbumTest\Controller\AlbumControllerTest::testEditActionRedirectsAfterValidPost
Zend\Form\Exception\InvalidArgumentException: Zend\Form\Fieldset::setObject expects an object argument; received ""