On Wed, Apr 1, 2009 at 9:21 AM, zpc <[email protected]> wrote: > > Dear everyone, > > I'm having some problems with redirects while unit testing a controller. > I'm trying to test a simple login form, and while the code block containing > the redirect line is being executed, the program continues onward and ends > up running the fallback redirect at the end of the action method instead. > When I manually test the page it works just as it should.
Can you share some code? > Another weird thing I noticed, and maybe this is a clue to whats going on or > just another oddity, is that when I echo $this->response->getBody() within a > test, I see my header and footer are both repeated. I'm using Zend_Layout, > so it seems as if the view content is getting inserted into the layout, and > then the result of THAT is inserted into the layout again. Why would that > happen? Are you dispatching in your bootstrap?
