public function GetSettingsFromEnvVarTest::credentialsDataProvider in Acquia Content Hub 8.2
Provides sample data for environment variables.
Return value
array Credentials.
File
- tests/
src/ Kernel/ EventSubscriber/ GetSettings/ GetSettingsFromEnvVarTest.php, line 80
Class
- GetSettingsFromEnvVarTest
- Tests that environment variables can be used for settings.
Namespace
Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\GetSettingsCode
public function credentialsDataProvider() {
return [
[
[
'acquia_contenthub_api_secret' => 'secret_key_test',
'acquia_contenthub_api_key' => 'api_key_test',
'acquia_contenthub_hostname' => 'https://test-settings.com',
'acquia_contenthub_client_name' => 'client_name_test',
'acquia_contenthub_origin' => 'origin_test',
'acquia_contenthub_shared_secret' => 'shared_secret_test',
'acquia_contenthub_webhook_url' => 'https://test-settings-webhook.com',
'acquia_contenthub_webhook_uuid' => 'webhook_uuid_test',
'acquia_contenthub_settings_url' => 'webhook_settings_url_test',
],
'environment_variable',
[
'name' => 'client_name_test',
'uuid' => 'origin_test',
'apiKey' => 'api_key_test',
'secretKey' => 'secret_key_test',
'url' => 'https://test-settings.com',
'sharedSecret' => 'shared_secret_test',
'webhook' => [
'url' => 'https://test-settings-webhook.com',
'uuid' => 'webhook_uuid_test',
'settings_url' => 'webhook_settings_url_test',
],
],
],
[
[
'acquia_contenthub_api_secret' => 'secret_key_test',
],
'core_config',
[
'name' => NULL,
'uuid' => FALSE,
'apiKey' => NULL,
'secretKey' => NULL,
'url' => NULL,
'sharedSecret' => NULL,
'webhook' => [],
],
],
[
[],
'core_config',
[
'name' => NULL,
'uuid' => FALSE,
'apiKey' => NULL,
'secretKey' => NULL,
'url' => NULL,
'sharedSecret' => NULL,
'webhook' => [],
],
],
];
}