We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b8510 commit 7d9cb14Copy full SHA for 7d9cb14
tests/Controllers/WebhooksControllerTest.php
@@ -41,5 +41,28 @@ protected function setUp()
41
$this->httpResponse = new HttpCallBackCatcher();
42
}
43
44
+ /**
45
+ * Retrieve Webhooks
46
+ */
47
+ public function retrieveWebhooks()
48
+ {
49
+ // Parameters for the API call
50
+ $page = 0;
51
+ $pageSize = 10;
52
53
+ // Set callback and perform API call
54
+ $result = null;
55
+ self::$controller->setHttpCallBack($this->httpResponse);
56
+ try {
57
+ $result = self::$controller->retrieveWebhook($page, $pageSize);
58
+ } catch (APIException $e) {
59
+ }
60
+
61
+ // Test response code
62
+ $this->assertEquals(
63
+ 200,
64
+ $this->httpResponse->getResponse()->getStatusCode(),
65
+ "Status is not 200"
66
+ );
67
68
0 commit comments