You are here

function UserpointsAPITestCase::setUp in User Points 7.2

Same name and namespace in other branches
  1. 7 tests/userpoints_api.test \UserpointsAPITestCase::setUp()

Install userpoints module and create users.

Overrides DrupalWebTestCase::setUp

File

./userpoints.test, line 104
Contains test classes for userpoints module.

Class

UserpointsAPITestCase
API Tests.

Code

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

  // Create an administrator account.
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer userpoints',
  ));

  // Create a standard Drupal account and log in as that person.
  $this->non_admin_user = $this
    ->drupalCreateUser();
  $this
    ->drupalLogin($this->non_admin_user);
}