function EntityTranslationTestCase::getAdminUser in Entity Translation 7
Returns a user with administration rights.
Parameters
$permissions: Additional permissions for administrative user.
14 calls to EntityTranslationTestCase::getAdminUser()
- EntityTranslationCommentTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
- EntityTranslationCommentTestCase::testCommentLanguageFiltering in tests/
entity_translation.test - Test comment filtering by language.
- EntityTranslationContentTranslationTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
- EntityTranslationHookTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
- EntityTranslationIntegrationTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
entity_translation.test, line 65 - Tests for Entity translation module.
Class
- EntityTranslationTestCase
- Base class for entity translation module tests.
Code
function getAdminUser(array $permissions = array()) {
if (!isset($this->admin_user)) {
$this->admin_user = $this
->drupalCreateUser(array_merge(array(
'bypass node access',
'administer nodes',
'administer fields',
'administer languages',
'administer content types',
'administer blocks',
'access administration pages',
'administer site configuration',
), $permissions));
}
return $this->admin_user;
}