public function ShortAnswerTestCase::setUp in Quiz 7.5
Same name and namespace in other branches
- 7.6 question_types/short_answer/short_answer.test \ShortAnswerTestCase::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/
short_answer/ short_answer.test, line 23 - Unit tests for the short_answer Module.
Class
- ShortAnswerTestCase
- Test class for short answer.
Code
public function setUp($modules = array(), $admin_permissions = array(), $user_permissions = array()) {
parent::setUp(array(
'short_answer',
), array(
'score any quiz',
));
}