You are here

protected function AcquiaConnectorSearchOverrideTest::createAdminUser in Acquia Search 2.x

Creates an admin user.

1 call to AcquiaConnectorSearchOverrideTest::createAdminUser()
AcquiaConnectorSearchOverrideTest::connect in tests/src/Functional/AcquiaConnectorSearchOverrideTest.php
Connect to the Acquia Subscription.

File

tests/src/Functional/AcquiaConnectorSearchOverrideTest.php, line 290

Class

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

Namespace

Drupal\Tests\acquia_search\Functional

Code

protected function createAdminUser() {
  $permissions = [
    'administer site configuration',
    'access administration pages',
    'access toolbar',
    'administer search_api',
  ];
  return $this
    ->drupalCreateUser($permissions);
}