You are here

protected function RegcodeTestCase::setUp in Registration codes 7.2

Overrides DrupalWebTestCase::setUp().

Overrides DrupalWebTestCase::setUp

File

tests/regcode.test, line 41
Tests suite for the Registration codes module.

Class

RegcodeTestCase
Tests operations of the regcode module.

Code

protected function setUp() {
  parent::setUp('regcode');

  // Create our test users.
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'administer site configuration',
    'access administration pages',
    'administer registration codes',
  ));
  $this->unprivUser = $this
    ->drupalCreateUser();
}