Fixes for webhook tests

This commit is contained in:
David Bomba 2023-01-27 21:52:12 +11:00
parent 0a696da9f5
commit 870fb637fd

View File

@ -70,6 +70,7 @@ class WebhookAPITest extends TestCase
$data = [ $data = [
'target_url' => 'http://hook.com', 'target_url' => 'http://hook.com',
'event_id' => 1, 'event_id' => 1,
'rest_method' => 'post',
'format' => 'JSON', 'format' => 'JSON',
]; ];
@ -85,7 +86,10 @@ class WebhookAPITest extends TestCase
$this->assertEquals(1, $arr['data']['event_id']); $this->assertEquals(1, $arr['data']['event_id']);
$data = [ $data = [
'target_url' => 'http://hook.com',
'event_id' => 2, 'event_id' => 2,
'rest_method' => 'post',
'format' => 'JSON',
]; ];
$response = $this->withHeaders([ $response = $this->withHeaders([