Skip to content

Commit

Permalink
Update ApiHelperTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanpakistan authored Nov 2, 2023
1 parent bcbf756 commit 8f32980
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Services/ApiHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f32980

Please sign in to comment.