public function UpdatePublishedTest::createAcquiaContentHubAdminSettings in Acquia Content Hub 8.2
Get Acquia Content Hub settings.
Return value
mixed Acquia Content Hub admin settings.
1 call to UpdatePublishedTest::createAcquiaContentHubAdminSettings()
- UpdatePublishedTest::setUp in tests/
src/ Kernel/ EventSubscriber/ HandleWebhook/ UpdatePublishedTest.php
File
- tests/
src/ Kernel/ EventSubscriber/ HandleWebhook/ UpdatePublishedTest.php, line 96
Class
- UpdatePublishedTest
- Tests entity updated published status.
Namespace
Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\HandleWebhookCode
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();
}