protected function AcquiaConnectorSearchOverrideTest::caseNonAcquiaHosted in Acquia Search 2.x
No Acquia hosting and DB detected - should override into Readonly.
1 call to AcquiaConnectorSearchOverrideTest::caseNonAcquiaHosted()
- AcquiaConnectorSearchOverrideTest::testOverrides in tests/
src/ Functional/ AcquiaConnectorSearchOverrideTest.php - Main function that calls the rest of the tests (names start with case*)
File
- tests/
src/ Functional/ AcquiaConnectorSearchOverrideTest.php, line 117
Class
- AcquiaConnectorSearchOverrideTest
- Tests the automatic switching behavior of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
protected function caseNonAcquiaHosted() {
$this
->drupalGet('/admin/config/search/search-api/server/' . $this->server);
$this
->assertText('automatically enforced read-only mode on this connection.');
//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);
$this
->assertText('automatically enforced read-only mode on this connection.');
}