You are here

public function AcquiaContentHubSerializerTestBase::createAcquiaContentHubAdminSettings in Acquia Content Hub 8.2

Get Acquia Content Hub settings.

Return value

mixed Acquia Content Hub admin settings.

1 call to AcquiaContentHubSerializerTestBase::createAcquiaContentHubAdminSettings()
AcquiaContentHubSerializerTestBase::setUp in tests/src/Kernel/AcquiaContentHubSerializerTestBase.php

File

tests/src/Kernel/AcquiaContentHubSerializerTestBase.php, line 108

Class

AcquiaContentHubSerializerTestBase
Base class for testing serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

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();
}