From 870fb637fd185f4af77dcef231734a13425ed4a8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 27 Jan 2023 21:52:12 +1100 Subject: [PATCH] Fixes for webhook tests --- tests/Feature/WebhookAPITest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Feature/WebhookAPITest.php b/tests/Feature/WebhookAPITest.php index 69c640a6ae61..b8af16692591 100644 --- a/tests/Feature/WebhookAPITest.php +++ b/tests/Feature/WebhookAPITest.php @@ -70,6 +70,7 @@ class WebhookAPITest extends TestCase $data = [ 'target_url' => 'http://hook.com', 'event_id' => 1, + 'rest_method' => 'post', 'format' => 'JSON', ]; @@ -85,7 +86,10 @@ class WebhookAPITest extends TestCase $this->assertEquals(1, $arr['data']['event_id']); $data = [ + 'target_url' => 'http://hook.com', 'event_id' => 2, + 'rest_method' => 'post', + 'format' => 'JSON', ]; $response = $this->withHeaders([