You are here

function QuizCreationTestCase::setUp in Quiz 7.6

Same name and namespace in other branches
  1. 7.5 tests/QuizCreationTestCase.test \QuizCreationTestCase::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.

Overrides QuizTestCase::setUp

File

tests/QuizCreationTestCase.test, line 13
Unit tests for the quiz question Module.

Class

QuizCreationTestCase
Test aspects of quiz creation including global and user defaults.

Code

function setUp($modules = array(), $admin_permissions = array(), $user_permissions = array()) {
  $modules[] = 'truefalse';
  $admin_permissions[] = "edit any truefalse content";
  parent::setUp($modules, $admin_permissions, $user_permissions);
}