You are here

protected function CourseTestCase::createStudentUser in Course 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/CourseTestCase.php \Drupal\Tests\course\Functional\CourseTestCase::createStudentUser()
2 calls to CourseTestCase::createStudentUser()
CourseObjectAccessTestCase::testDisabledCourseObjects in tests/src/Functional/CourseObjectAccessTestCase.php
Test disabled course objects do not show up in the course outline and do not block completion.
CourseTestCase::setUp in tests/src/Functional/CourseTestCase.php

File

tests/src/Functional/CourseTestCase.php, line 25

Class

CourseTestCase
Master class for Course tests.

Namespace

Drupal\Tests\course\Functional

Code

protected function createStudentUser() {
  return $this
    ->drupalCreateUser(array(
    'take course',
    'view course',
    'enroll course',
  ));
}