Skip to content
Permalink
Browse files

Update IntegrationTestCase.php

Added ability to post body to test integration in order to test webhooks, json objects etc.
  • Loading branch information...
dangerdan committed Oct 1, 2015
1 parent d7a4896 commit 541ec1f7b47c298adbf722bde903ca61fb3d8c08
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/TestSuite/IntegrationTestCase.php
@@ -352,6 +352,9 @@ protected function _buildRequest($url, $method, $data)
'session' => $session,
'query' => $query
];
if (!is_array($data)) {
$props['input'] = $data;
}
$env = [];
if (isset($this->_request['headers'])) {
foreach ($this->_request['headers'] as $k => $v) {

0 comments on commit 541ec1f

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