Skip to content

Commit f757fca

Browse files
committed
Remove broken test
1 parent a9236b2 commit f757fca

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

tests/Controllers/WebhooksControllerTest.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,6 @@ protected function setUp()
4141
$this->httpResponse = new HttpCallBackCatcher();
4242
}
4343

44-
/**
45-
* Delete a webhook that was previously created for the connected account.
46-
A webhook can be cancelled by appending the UUID of the webhook to the endpoint and submitting a DELETE request to the /webhooks/messages endpoint.
47-
*Note: Only pre-created webhooks can be deleted. If an invalid or non existent webhook ID parameter is specified in the request, then a HTTP 404 Not Found response will be returned.*
48-
*/
49-
public function testDeleteWebhook1()
50-
{
51-
// Parameters for the API call
52-
$webhookId = 'a7f11bb0-f299-4861-a5ca-9b29d04bc5ad';
53-
54-
// Set callback and perform API call
55-
self::$controller->setHttpCallBack($this->httpResponse);
56-
try {
57-
self::$controller->deleteWebhook($webhookId);
58-
} catch (APIException $e) {
59-
}
60-
61-
// Test response code
62-
$this->assertEquals(
63-
204,
64-
$this->httpResponse->getResponse()->getStatusCode(),
65-
"Status is not 204"
66-
);
67-
68-
$this->assertCount(
69-
count($headers),
70-
$this->httpResponse->getResponse()->getHeaders(),
71-
"Headers do not match strictly"
72-
);
73-
}
74-
7544
/**
7645
* Update a webhook. You can update individual attributes or all of them by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
7746
A successful request to the retrieve webhook endpoint will return a response body as follows:

0 commit comments

Comments
 (0)