public function AcquiaSearchWebTestCase::createAuthenticatedUser in Acquia Connector 7.3
Same name and namespace in other branches
- 7.2 acquia_search/tests/acquia_search.test \AcquiaSearchWebTestCase::createAuthenticatedUser()
Creates an authenticated user that has access to search content.
Return value
object 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 - Test default search.
File
- acquia_search/
tests/ acquia_search.test, line 505 - 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);
}