You are here

public function AnswersUserPointsTestCase::setUp in Answers 7.4

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

1 call to AnswersUserPointsTestCase::setUp()
AnswersThemeUserPointsTestCase::setUp in answers_theme/answers_theme.test
Enable modules and create users with specific permissions.
1 method overrides AnswersUserPointsTestCase::setUp()
AnswersThemeUserPointsTestCase::setUp in answers_theme/answers_theme.test
Enable modules and create users with specific permissions.

File

answers_userpoints/answers_userpoints.test, line 40
Tests for answers_userpoints.module.

Class

AnswersUserPointsTestCase
Tests the functionality of the answers_userpoints module admin settings.

Code

public function setUp() {
  parent::setUp('answers_userpoints');
  $permissions = array(
    'create answers_question content',
    'create answers_answer content',
  );
  $this->questionUser = $this
    ->drupalCreateUser($permissions);
  $this->answerUser = $this
    ->drupalCreateUser($permissions);
  @userpoints_get_current_points($this->answerUser->uid);
  @userpoints_get_current_points($this->questionUser->uid);
}