You are here

protected function AdvPollTestBase::createUsers in Advanced Poll 7.3

Create users.

1 call to AdvPollTestBase::createUsers()
AdvPollTestBase::setUp in tests/AdvPollTestBase.test
Setup the testing environment.

File

tests/AdvPollTestBase.test, line 47
Advanced Poll Test Base.

Class

AdvPollTestBase
@file Advanced Poll Test Base.

Code

protected function createUsers() {
  $this->admin = $this
    ->drupalCreateUser(array(
    'administer polls',
    'inspect all votes',
  ));
  $this->poll_admin = $this
    ->drupalCreateUser(array(
    'show vote results',
    'access electoral list',
    'add write-ins',
    'show write-ins',
  ));
  $this->voter_a = $this
    ->drupalCreateUser(array(
    'vote on polls',
    'cancel own vote',
  ));
  $this->voter_b = $this
    ->drupalCreateUser(array(
    'vote on polls',
    'cancel own vote',
  ));
}