public function AcquiaConnectorSearchTest::createAdminUser in Acquia Search 2.x
Creates an admin user.
1 call to AcquiaConnectorSearchTest::createAdminUser()
- AcquiaConnectorSearchTest::connect in tests/
src/ Functional/ AcquiaConnectorSearchTest.php - Connect.
File
- tests/
src/ Functional/ AcquiaConnectorSearchTest.php, line 127
Class
- AcquiaConnectorSearchTest
- Tests the functionality of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
public function createAdminUser() {
$permissions = [
'administer site configuration',
'access administration pages',
'access toolbar',
'administer search_api',
];
return $this
->drupalCreateUser($permissions);
}