Unit testing and redirects within an exception

2014-03-04 Thread Richard Claydon
Hi I have a unit test here, and it is failing. The headers['location'] key does not have a value in it when the Product->edit() method raises the exception, even though I still call redirect within the catch. Is this expected behavior? If I put the redirect before or after the try...catch blog

Re: Component code

2010-09-02 Thread Richard Claydon
n > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googleg