function UserpointsAdminTestCase::setUp in User Points 7.2
Same name and namespace in other branches
- 7 tests/userpoints_api.test \UserpointsAdminTestCase::setUp()
Install userpoints module and create users.
Overrides DrupalWebTestCase::setUp
File
- ./
userpoints.test, line 485 - 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);
}