I am writing some tests for a zf app. Most of them are very simple but the
first one where I am actually posting data is failing. Since my other ones are
working, I think that most likely, it is set up correctly but I'm not sure what
next step would be (grabbing values out of the the dispatcher? ). thanks for
any help.
public function testLogin(){
$request=$this->getRequest();
$request->setMethod('POST');
$request->setPost(array('email'=>'xxx','password'=>'xxx'));
Zend_Debug::dump($request->getParams());
Zend_Debug::dump($request->getMethod());
Zend_Debug::dump($request);
$this->dispatch('/user/login');
$this->assertRedirectTo('/user/home');
}
-jonathan