protected function AcquiaConnectorSearchOverrideTest::caseAcquiaHostingProdEnvironmentDetectedWithoutProdFlag in Acquia Connector 8
Acquia Prod environment and a DB name but AH_PRODUCTION isn't set.
So read only.
1 call to AcquiaConnectorSearchOverrideTest::caseAcquiaHostingProdEnvironmentDetectedWithoutProdFlag()
- AcquiaConnectorSearchOverrideTest::testOverrides in acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php - Main function that calls the rest of the tests (names start with case*)
File
- acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php, line 205
Class
- AcquiaConnectorSearchOverrideTest
- Tests the automatic switching behavior of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
protected function caseAcquiaHostingProdEnvironmentDetectedWithoutProdFlag() {
$overrides = [
'env-overrides' => 1,
'AH_SITE_ENVIRONMENT' => 'prod',
'AH_SITE_NAME' => 'testsite1prod',
'AH_SITE_GROUP' => 'testsite1',
];
$this
->drupalGet('/admin/config/search/search-api/server/' . $this->server, [
'query' => $overrides,
]);
$this
->assertText('automatically enforced read-only mode on this connection.');
$this
->assertText('The following Acquia Search Solr index IDs would have worked for your current environment');
$this
->assertText($this->id . '.prod.' . $this
->getDbName());
$this
->assertText($this->id . '.prod.' . $this
->getSiteFolderName());
//phpcs:disable
//$delete_btn = $this->xpath('//input[@value="Delete all indexed data on this server"]');
//$this->assertEqual($delete_btn[0]->getAttribute('disabled'), 'disabled');
//phpcs:enable
$this
->drupalGet('/admin/config/search/search-api/index/' . $this->index, [
'query' => $overrides,
]);
$this
->assertText('automatically enforced read-only mode on this connection.');
}