public function ContentHubClientMock::getWebHook in Acquia Content Hub 8.2
File
- tests/
modules/ acquia_contenthub_server_test/ src/ Client/ ContentHubClientMock.php, line 112
Class
- ContentHubClientMock
- Mocks server responses.
Namespace
Drupal\acquia_contenthub_server_test\ClientCode
public function getWebHook($webhook_url) {
if (strpos($webhook_url, MockDataProvider::ALREADY_REGISTERED_WEBHOOK) !== FALSE) {
return [
'client_name' => $this->options['name'],
'client_uuid' => $this->options['uuid'],
'disable_retries' => TRUE,
'url' => $webhook_url,
'uuid' => $this->testWebhook['uuid'],
];
}
return [];
}