public function AcquiaSearchWebTestCase::createAuthenticatedUser in Acquia Connector 7.2
Same name and namespace in other branches
- 7.3 acquia_search/tests/acquia_search.test \AcquiaSearchWebTestCase::createAuthenticatedUser()
Creates an authenticated user that has access to search content.
Return value
stdClass The user object of the authenticated user.
See also
DrupalWebTestCase::drupalCreateUser()
1 call to AcquiaSearchWebTestCase::createAuthenticatedUser()
- AcquiaSearchWebTestCase::testDefaultSearch in acquia_search/
tests/ acquia_search.test - Tests that Apache Solr search is set as the default search when the Acquia Search environment is enabled.
File
- acquia_search/
tests/ acquia_search.test, line 441 - Tests for the Acquia Search module.
Class
- AcquiaSearchWebTestCase
- Tests the functionality of the Acquia Search module.
Code
public function createAuthenticatedUser() {
$permissions = array(
'search content',
);
return $this
->drupalCreateUser($permissions);
}