From 8f329800322435879b3b0d3f585e3afa0d250e83 Mon Sep 17 00:00:00 2001 From: Usman Shaukat Date: Thu, 2 Nov 2023 22:07:49 +0500 Subject: [PATCH] Update ApiHelperTest.php --- tests/Services/ApiHelperTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Services/ApiHelperTest.php b/tests/Services/ApiHelperTest.php index 06be4c5f..39d7e4d0 100644 --- a/tests/Services/ApiHelperTest.php +++ b/tests/Services/ApiHelperTest.php @@ -205,15 +205,14 @@ public function testCreateWebhook(): void ]); $dataArn = $shop->apiHelper()->createWebhook([ - 'topic' => 'ORDERS_UPDATE', + 'topic' => 'ORDERS_CREATE', 'address' => 'arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/client_id_x/EventBridgeSource', ]); - $this->assertInstanceOf(ResponseAccess::class, $dataArn); $this->assertInstanceOf(ResponseAccess::class, $data); $this->assertInstanceOf(ResponseAccess::class, $dataArn); $this->assertSame('ORDERS_CREATE', $data['data']['webhookSubscriptionCreate']['topic']); - $this->assertSame('ORDERS_UPDATE', $dataArn['data']['webhookSubscriptionCreate']['topic']); + $this->assertSame('ORDERS_CREATE', $dataArn['data']['webhookSubscriptionCreate']['topic']); } public function testDeleteWebhook(): void