You are here

public function ContentHubClientMock::getRemoteSettings in Acquia Content Hub 8.2

File

tests/modules/acquia_contenthub_server_test/src/Client/ContentHubClientMock.php, line 186

Class

ContentHubClientMock
Mocks server responses.

Namespace

Drupal\acquia_contenthub_server_test\Client

Code

public function getRemoteSettings() {
  $this->options = $this
    ->getSettings()
    ->toArray();
  return [
    'clients' => [
      [
        'name' => $this->options['name'],
        'uuid' => $this->options['uuid'],
      ],
    ],
    'success' => TRUE,
    'uuid' => MockDataProvider::randomUuid(),
    'webhooks' => [
      [
        'client_name' => $this->options['name'],
        'client_uuid' => $this->options['uuid'],
        'disable_retries' => FALSE,
        'url' => $this->testWebhook['url'],
        'uuid' => $this->testWebhook['uuid'],
        'status' => 1,
      ],
    ],
    'shared_secret' => 'kh32j32132143143276bjsdnfjdhuf3',
  ];
}