public function getWebhookCall(Webhook $webhook, $webhookCallId) { $command = $this->getCommand('GetWebhook', array('webhookId' => $webhook->getId(), 'webhookCallId' => $webhookCallId)); return $this->execute($command); }
public function testGetWebhookCallReturnsCorrectData() { $webhook = new Webhook(); $webhook->setId('00000000-0000-0000-0000-000000000000'); $this->setMockResponse($this->client, array('webhooks/getWebhookCall')); $webhookCall = $this->client->getWebhookCall($webhook, '00000000-0000-0000-0000-000000000000'); $this->assertInstanceOf('\\Mgrt\\Model\\WebhookCall', $webhookCall); }