public function AcquiaConnectorSearchTest::connect in Acquia Connector 8
Connect.
1 call to AcquiaConnectorSearchTest::connect()
- AcquiaConnectorSearchTest::setUp in acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchTest.php
File
- acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchTest.php, line 106
Class
- AcquiaConnectorSearchTest
- Tests the functionality of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
public function connect() {
\Drupal::configFactory()
->getEditable('acquia_connector.settings')
->set('spi.ssl_verify', FALSE)
->save();
\Drupal::configFactory()
->getEditable('acquia_connector.settings')
->set('spi.ssl_override', TRUE)
->save();
$admin_user = $this
->createAdminUser();
$this
->drupalLogin($admin_user);
$edit_fields = [
'acquia_identifier' => $this
->randomString(8),
'acquia_key' => $this
->randomString(8),
];
$submit_button = 'Connect';
$this
->drupalPostForm('admin/config/system/acquia-connector/credentials', $edit_fields, $submit_button);
\Drupal::service('module_installer')
->install([
'acquia_search',
]);
}