You are here

function VudTermWebTestCase::setUp in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud_term/vud_term.test \VudTermWebTestCase::setUp()
  2. 6.2 vud_term/vud_term.test \VudTermWebTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

vud_term/vud_term.test, line 23
Test file for Vote Up/Down Term.

Class

VudTermWebTestCase
@file Test file for Vote Up/Down Term.

Code

function setUp() {
  parent::setUp('votingapi', 'ctools', 'vud', 'vud_term');

  // Create a vud admin user
  $this->admin_user = $this
    ->drupalCreateUser(array(
    // vud
    'access vote up/down statistics',
    'administer vote up/down',
    'reset vote up/down votes',
    'use vote up/down',
    // vud_term
    'administer vote up/down on terms',
    'use vote up/down on terms',
  ));

  // Create a vud simple user
  $this->simple_user = $this
    ->drupalCreateUser(array(
    // vud
    'access vote up/down statistics',
    'use vote up/down',
    'reset vote up/down votes',
    // vud_term
    'use vote up/down on terms',
  ));

  // Create a vud restricted user (can not interact with vud)
  $this->restricted_user = $this
    ->drupalCreateUser();
}