It was a bootstrap problem, now it works. Thanks Matthew!
Matthew Weier O'Phinney-3 wrote: > > -- 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/ > > -- View this message in context: http://www.nabble.com/Unable-to-test-Request-Assertions-in-Zend_Test-tp19894898p19900703.html Sent from the Zend Framework mailing list archive at Nabble.com.