You are here

protected function CourseTestBase::setUp in Course 3.x

Overrides BrowserTestBase::setUp

2 calls to CourseTestBase::setUp()
CourseObjectQuizTest::setUp in modules/course_quiz/tests/src/Functional/CourseObjectQuizTest.php
CourseObjectWebformTest::setUp in modules/course_webform/tests/src/Functional/CourseObjectWebformTest.php
2 methods override CourseTestBase::setUp()
CourseObjectQuizTest::setUp in modules/course_quiz/tests/src/Functional/CourseObjectQuizTest.php
CourseObjectWebformTest::setUp in modules/course_webform/tests/src/Functional/CourseObjectWebformTest.php

File

tests/src/Functional/CourseTestBase.php, line 19

Class

CourseTestBase
Master class for Course tests.

Namespace

Drupal\Tests\course\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'bypass node access',
    'administer course',
    'administer courses',
  ));
  $this->student_user = $this
    ->createStudentUser();
  $this
    ->drupalLogin($this->admin_user);
}