Skip to content
Permalink
Browse files

Fix failing tests.

  • Loading branch information...
markstory committed Dec 29, 2012
1 parent b9d1512 commit c22d6d1507a65f959cdd71bc61697cef01c23e91
@@ -120,15 +120,15 @@ protected function _buildHeaders(Request $request, $options) {
/**
* Builds the request content based on the request object.
*
* If the $request->content() is a string, it will be used as is.
* If the $request->body() is a string, it will be used as is.
* Array data will be processed with Cake\Network\Http\FormData
*
* @param Cake\Network\Http\Request $request The request being sent.
* @param array $options Array of options to use.
* @return void
*/
protected function _buildContent(Request $request, $options) {
$content = $request->content();
$content = $request->body();
if (empty($content)) {
return;
}
@@ -36,14 +36,14 @@ class Message {
*
* @var array
*/
protected $_headers;
protected $_headers = [];
/**
* The array of cookies in the response.
*
* @var array
*/
protected $_cookies;
protected $_cookies = [];
/**
* HTTP Version being used.
@@ -92,7 +92,7 @@ public function testSendContextContentString() {
->header([
'Content-Type' => 'application/json'
])
->content($content);
->body($content);
$options = [
'redirect' => 20
@@ -119,7 +119,7 @@ public function testSendContextContentArray() {
->header([
'Content-Type' => 'application/json'
])
->content(['a' => 'my value']);
->body(['a' => 'my value']);
$this->stream->send($request, []);
$result = $this->stream->contextOptions();

0 comments on commit c22d6d1

Please sign in to comment.
You can’t perform that action at this time.