Skip to content

Instantly share code, notes, and snippets.

@whisher
Created June 10, 2013 10:01
Show Gist options
  • Save whisher/5747681 to your computer and use it in GitHub Desktop.
Save whisher/5747681 to your computer and use it in GitHub Desktop.
public function testUserCanRegisterAction()
{
$data = array(
'email'=>'ppp@hhh.it',
'password'=>'password',
'repassword'=>'password',
'domain'=>'googlish.com',
'country'=>'it',
'category'=>5,
'terms_accept'=>1,
);
$this->request->setPost($data);
$this->request->setHeader('X_REQUESTED_WITH', 'XMLHttpRequest');
$this->request->setMethod('POST');
$this->dispatch('/user/signup');
$body = $this->response->getBody();
$phpNative = Zend_Json::decode($body);
var_dump( $phpNative );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment