-- Mauricio Cuenca <[EMAIL PROTECTED]> wrote
(on Thursday, 09 October 2008, 01:53 AM -0700):
> I'm trying to build my test environment based in Matthew Weier O'Phinney's
> Pastebin example but request assertions does not work for me. The Patebin's
> tests worked right out of the box. When I run mine I get the following
> error:
> 
> 1) testHomePageShouldRedirectToSignupPage(IndexControllerTest)
> Zend_Controller_Exception: No default module defined for this application

This tells me that your bootstrap is either not setup or not triggering.
Please send the rest of the test class.


> My IndexControllerTest does the following:
> 
>     public function testHomePageShouldRedirectToSignupPage()
>     {
>         $this->dispatch('/'); // The error is thrown here
>         $this->assertRedirectRegex('#/signup(/index)?$#');
>     }
> 
> I tried everything, I called setDefaultModule('default') in the bootstrap
> and the same error is shown. My app does not have a module structure.
> 
> Any help would be really appreciated. TIA.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to