Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 541ec1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TestSuite/IntegrationTestCase.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 541ec1f

Please sign in to comment.