0

我有这个简单的测试

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 );

   }

但似乎没有发送任何关于它的帖子值?

你可以找到更多信息 https://gist.github.com/whisher

4

0 回答 0