You are here

function CourseObjectQuizTestCase::setUp in Course 8.2

Same name and namespace in other branches
  1. 8.3 modules/course_quiz/tests/src/Functional/CourseObjectQuizTestCase.php \Drupal\Tests\course_quiz\Functional\CourseObjectQuizTestCase::setUp()

Overrides CourseTestCase::setUp

File

modules/course_quiz/tests/src/Functional/CourseObjectQuizTestCase.php, line 27

Class

CourseObjectQuizTestCase
Tests quizzes in courses.

Namespace

Drupal\Tests\course_quiz\Functional

Code

function setUp() {
  parent::setUp();
  $this->quiz_admin = $this
    ->drupalCreateUser(array(
    'access quiz',
    'create truefalse quiz_question',
    'update truefalse quiz_question',
    'create quiz quiz',
    'update any quiz quiz',
  ));
}