function UserpointsTestCase::setUp in User Points 6
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
userpoints_api.test, line 22
Class
Code
function setUp() {
parent::setUp('userpoints');
// Create an administrator account
global $admin_user;
$admin_user = $this
->drupalCreateUser(array(
'administer userpoints',
));
// Create a standard Drupal account and log in as that person
$non_admin_user = $this
->drupalCreateUser();
$this
->drupalLogin($non_admin_user);
}