You are here

function UserpointsAdminTestCase::setUp in User Points 7

Same name and namespace in other branches
  1. 7.2 userpoints.test \UserpointsAdminTestCase::setUp()

Install userpoints module and create users.

Overrides DrupalWebTestCase::setUp

File

tests/userpoints_api.test, line 730
Contains test classes for userpoints module.

Class

UserpointsAdminTestCase
Administration UI tests

Code

function setUp() {
  parent::setUp('userpoints');

  // Create an administrator account and log in with that.
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer userpoints',
  ));
  $this
    ->drupalLogin($this->admin_user);
}