You are here

public function HiddenLanguageBaseTestCase::getAdminUser in Hidden Language 7

Returns a user with admin rights.

1 call to HiddenLanguageBaseTestCase::getAdminUser()
HiddenLanguageBaseTestCase::loginAdminUser in ./hidden_language.test
Log in as admin user.

File

./hidden_language.test, line 31
Tests for Hidden Language module.

Class

HiddenLanguageBaseTestCase
Base class for Hidden Language module tests.

Code

public 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;
}