You are here

protected function AcquiaConnectorSearchOverrideTest::caseNonAcquiaHosted in Acquia Connector 8

No Acquia hosting and DB detected - should override into Readonly.

1 call to AcquiaConnectorSearchOverrideTest::caseNonAcquiaHosted()
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 117

Class

AcquiaConnectorSearchOverrideTest
Tests the automatic switching behavior of the Acquia Search module.

Namespace

Drupal\Tests\acquia_search\Functional

Code

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.');
}