This post has NOT been accepted by the mailing list yet.
In Zend manual is explained how to test Album model. Its says:
Testing the editAction and deleteAction methods can be easily done in a manner similar as shown for the addAction.
When testing the editAction you will also need to mock out the getAlbum method:
Can anybody help me to do that I got an error constantly
There was 1 failure:
1) AlbumTest\Controller\AlbumControllerTest::testEditActionRedirectsAfterValidPost
Failed asserting response redirects to "/album", actual redirection is "/album/add"
On 14 April 2016 at 18:02, Nuzhser [via Zend Framework Community] <[hidden email]> wrote:
In Zend manual is explained how to test Album model. Its says:
Testing the editAction and deleteAction methods can be easily done in a manner similar as shown for the addAction.
When testing the editAction you will also need to mock out the getAlbum method:
Can anybody help me to do that I got an error constantly
There was 1 failure:
1) AlbumTest\Controller\AlbumControllerTest::testEditActionRedirectsAfterValidPost
Failed asserting response redirects to "/album", actual redirection is "/album/add"