You are here

public function PurgeTest::createAcquiaContentHubAdminSettings in Acquia Content Hub 8.2

Get Acquia Content Hub settings.

Return value

mixed Acquia Content Hub admin settings.

1 call to PurgeTest::createAcquiaContentHubAdminSettings()
PurgeTest::setUp in tests/src/Kernel/EventSubscriber/HandleWebhook/PurgeTest.php

File

tests/src/Kernel/EventSubscriber/HandleWebhook/PurgeTest.php, line 106

Class

PurgeTest
Tests queue and export table purge.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\HandleWebhook

Code

public function createAcquiaContentHubAdminSettings() {
  $admin_settings = $this->configFactory
    ->getEditable('acquia_contenthub.admin_settings');
  return $admin_settings
    ->set('client_name', 'test-client')
    ->set('origin', '00000000-0000-0001-0000-123456789123')
    ->set('api_key', '12312321312321')
    ->set('secret_key', '12312321312321')
    ->set('hostname', 'https://example.com')
    ->set('shared_secret', '12312321312321')
    ->save();
}