Skip to content
Snippets Groups Projects
Commit c76e70a9 authored by Oleksandr Tymoshchuk's avatar Oleksandr Tymoshchuk Committed by Ivan Doroshenko
Browse files

Issue #3359369 by o_tymoshchuk: Change the endpoint in the configuration and...

Issue #3359369 by o_tymoshchuk: Change the endpoint in the configuration and settings form according to last changes in the unione-php
parent 7b6dc28b
No related branches found
No related tags found
1 merge request!21unione-3359369 Changed endpoint in the config form and install settings.
api_key: ''
endpoint: 'https://us1.unione.io/en/transactional/api/v1/'
endpoint: 'us1.unione.io'
track_click: 1
track_read: 1
debug_mode: 0
......
......@@ -66,8 +66,8 @@ class UniOneAdminSettingsForm extends ConfigFormBase {
'#required' => TRUE,
'#description' => $this->t('Select which UniOne Instance to use.'),
'#options' => [
'https://us1.unione.io/en/transactional/api/v1/' => $this->t('UniOne USA & Canada Instance'),
'https://eu1.unione.io/en/transactional/api/v1/' => $this->t('UniOne European Instance'),
'us1.unione.io' => $this->t('UniOne USA & Canada Instance'),
'eu1.unione.io' => $this->t('UniOne European Instance'),
],
'#default_value' => $config->get('endpoint'),
];
......
......@@ -69,8 +69,8 @@ class UnioneAdminSettingsFormTest extends BrowserTestBase {
// Save additional parameters. Check that all fields available on the form.
$field_values = [
'api_key' => '68o95zbzfysauc4ghpcwo5mkghwoiiozwk9ecnno',
'endpoint' => 'https://us1.unione.io/en/transactional/api/v1/',
'api_key' => 'dfispdoifdfksfsdlkfj;sdlpsdipos',
'endpoint' => 'us1.unione.io',
'track_click' => 1,
'track_read' => 1,
'debug_mode' => TRUE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment