You are here

function LanguageHierarchyBaseTestCase::getAdminUser in Language Hierarchy 7

Returns a user with administration rights.

Parameters

$permissions: Additional permissions for administrative user.

1 call to LanguageHierarchyBaseTestCase::getAdminUser()
LanguageHierarchyBaseTestCase::loginAdminUser in tests/language_hierarchy.test
Log in as admin user.

File

tests/language_hierarchy.test, line 246
Tests for Language Hierarchy module.

Class

LanguageHierarchyBaseTestCase
Base class for Language Hierarchy module tests.

Code

function getAdminUser(array $permissions = array()) {
  if (!isset($this->admin_user)) {
    $this->admin_user = $this
      ->drupalCreateUser(array_merge($this->admin_user_permissions, $permissions));
  }
  return $this->admin_user;
}