You are here

public function AnswersTestCase::setUp in Answers 7.3

Same name and namespace in other branches
  1. 7.4 answers.test \AnswersTestCase::setUp()

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

./answers.test, line 34
Tests for answers.module.

Class

AnswersTestCase
Tests the functionality of the answers module.

Code

public function setUp() {
  parent::setUp('answers');
  $this->answersUser = $this
    ->drupalCreateUser(array(
    'administer content types',
    'create question content',
    'edit own question content',
    'create answer content',
    'edit own answer content',
  ));
}