Skip to content

Commit

Permalink
Merge pull request #20 from jeremygriffin/webhookCorrection
Browse files Browse the repository at this point in the history
Fix: Webhook API::List constants casing.
  • Loading branch information
lanlin authored Sep 3, 2020
2 parents b0fe2d0 + 24d389e commit 829e2fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Utilities/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class API
'searchMessages' => '/messages/search',

// Webhooks
'Webhooks' => '/a/%s/webhooks',
'webhooks' => '/a/%s/webhooks',
'oneWebhook' => '/a/%s/webhooks/%s',

// Deltas
Expand Down
6 changes: 3 additions & 3 deletions tests/WebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testCreateWebhook(): void

// ------------------------------------------------------------------------------

public function testUpdateWebhook($id): void
public function testUpdateWebhook($id = ''): void
{
$id = $id ?: \uniqid();

Expand All @@ -57,7 +57,7 @@ public function testUpdateWebhook($id): void

// ------------------------------------------------------------------------------

public function testGetWebhook($id): void
public function testGetWebhook($id = ''): void
{
$id = $id ?: \uniqid();

Expand All @@ -68,7 +68,7 @@ public function testGetWebhook($id): void

// ------------------------------------------------------------------------------

public function testDeleteWebhook($id): void
public function testDeleteWebhook($id = ''): void
{
try
{
Expand Down

0 comments on commit 829e2fc

Please sign in to comment.