SettingsDataTrait.php in Acquia Lift Connector 8
File
tests/src/Unit/Traits/SettingsDataTrait.php
View source
<?php
namespace Drupal\Tests\acquia_lift\Unit\Traits;
trait SettingsDataTrait {
private function getValidCredentialSettings() {
return [
'account_name' => 'account_name_1',
'customer_site' => 'customer_site_1',
'api_url' => 'api_url_1',
'access_key' => 'access_key_1',
'secret_key' => 'secret_key_1',
'js_path' => 'js_path_1',
];
}
private function getValidIdentitySettings() {
return [
'capture_identity' => FALSE,
'identity_parameter' => 'my_identity_parameter',
'identity_type_parameter' => 'my_identity_type_parameter',
'default_identity_type' => 'my_default_identity_type',
];
}
private function getValidFieldMappingsSettings() {
return [
'content_section' => 'field_country',
'content_keywords' => 'field_tags',
'persona' => 'field_people',
];
}
private function getValidThumbnailSettings() {
return [
'article' => [
'field' => 'field_media->field_image',
'style' => 'medium',
],
];
}
private function getValidVisibilitySettings() {
return [
'path_patterns' => "/admin\n/admin/*\n/batch\n/node/add*\n/node/*/*\n/user/*/*",
];
}
private function getValidFrontEndCredentialSettings() {
return [
'account_name' => 'account_name_1',
'customer_site' => 'customer_site_1',
'js_path' => 'js_path_1',
];
}
}