You are here

function VudWebTestCase::setUp in Vote Up/Down 7.2

Same name and namespace in other branches
  1. 6.3 vud.test \VudWebTestCase::setUp()
  2. 6.2 vud.test \VudWebTestCase::setUp()
  3. 7 vud.test \VudWebTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

./vud.test, line 28
Test file for Vote Up/Down.

Class

VudWebTestCase
TODO test casting vote TODO test changing voting api tag after casting votes, and see if votes change TODO test vote reset

Code

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

  // 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',
  ));

  // 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',
  ));

  //TODO more users with less privileges

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