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
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.
--
View this message in context:
http://www.nabble.com/Unable-to-test-Request-Assertions-in-Zend_Test-tp19894898p19894898.html
Sent from the Zend Framework mailing list archive at Nabble.com.