You are here

public function LongAnswerTestCase::setUp in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 question_types/long_answer/long_answer.test \LongAnswerTestCase::setUp()

Set up a question test case.

Parameters

array $modules: Array of modules to enable.

array $admin_permissions: Array of admin permissions to add.

array $user_permissions: Array of user permissions to add.

Return value

void|false

Overrides QuizQuestionTestCase::setUp

File

question_types/long_answer/long_answer.test, line 35
Unit tests for the long_answer Module.

Class

LongAnswerTestCase
Test class for long answer.

Code

public function setUp($modules = array(), $admin_permissions = array(), $user_permissions = array()) {
  parent::setUp(array(
    'long_answer',
  ), array(
    'score any quiz',
  ));
}