I didn't realize this was from within a plugin. Which hook are you in? Did
you try calling $request->isDispatched(true)?

--
*Hector Virgen*
Sr. Web Developer
http://www.virgentech.com



On Mon, Dec 6, 2010 at 4:18 PM, Fernando Marcelo <
[email protected]> wrote:

> Thanks for the reply but i also tried this in the past and i get the same
> result: controller code is still executed and redirect is ignored.
>
> Any other ideas?
>
> Regards,
>
> Fernando Morgenstern
> [email protected]
>
>
>
>
> Em 06/12/2010, às 22:14, Hector Virgen escreveu:
>
> > You need to return the redirector for unit tests:
> >
> > return $redirector->gotoSimple(/*...*/);
> >
> > --
> > Hector Virgen
> > Sr. Web Developer
> > http://www.virgentech.com
> >
> >
> >
> > On Mon, Dec 6, 2010 at 3:00 PM, Fernando Morgenstern <
> [email protected]> wrote:
> > Hi,
> >
> > I'm having some issues with Zend Test and controller plugins.
> >
> > The issue is specifically with an Auth plugin that i have. If i have this
> code:
> >
> > $redirector =
> Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
> > $redirector->gotoSimple('index', 'login', 'public');
> > return;
> >
> > It's ignored by Zend Test and it executes the code in controllers without
> applying the redirect.
> >
> > If i use the same redirect code in controllers, it works ok.
> >
> > Is this a bug in Zend Test? Any way to fix this issue?
> >
> > Regards,
> >
> > Fernando Morgenstern
> > [email protected]
> >
> >
> >
> >
>
>

Reply via email to