You are here

public function AcquiaSearchWebTestCase::testDeleteSearchEnvironmentAccess in Acquia Connector 7.3

Tests that user have no access to delete search environment.

File

acquia_search/tests/acquia_search.test, line 640
Tests for the Acquia Search module.

Class

AcquiaSearchWebTestCase
Tests the functionality of the Acquia Search module.

Code

public function testDeleteSearchEnvironmentAccess() {
  $this
    ->assertFalse(acquia_search_environment_delete_access([]));
  $environment = [
    'env_id' => ACQUIA_SEARCH_V3_ENVIRONMENT_ID,
  ];
  $this
    ->assertFalse(acquia_search_environment_delete_access($environment));
}