protected function AcquiaConnectorSearchOverrideTest::caseAcquiaHostingEnvironmentDetectedNoAvailableCores in Acquia Connector 8
Acquia Test environment and a DB name.
According to the mock, no cores available for the Test environment so it is read only.
1 call to AcquiaConnectorSearchOverrideTest::caseAcquiaHostingEnvironmentDetectedNoAvailableCores()
- 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 171
Class
- AcquiaConnectorSearchOverrideTest
- Tests the automatic switching behavior of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
protected function caseAcquiaHostingEnvironmentDetectedNoAvailableCores() {
$overrides = [
'env-overrides' => 1,
'AH_SITE_ENVIRONMENT' => 'test',
'AH_SITE_NAME' => 'testsite1test',
'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 . '.test.' . $this
->getDbName());
$this
->assertText($this->id . '.test.' . $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,
]);
// On index edit page, check the read-only mode state.
$this
->assertText('automatically enforced read-only mode on this connection.');
}