public function testUpdateWebhookReturnsCorrectData() { $webhook = new Webhook(); $webhook->setId('00000000-0000-0000-0000-000000000000'); $webhook->setName('test'); $webhook->setCallbackUrl('http://example.com'); $this->setMockResponse($this->client, array('webhooks/updateWebhook')); $result = $this->client->updateWebhook($webhook); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }