You are here

function CourseOutlineUiTestCase::testCourseOutlineCrud in Course 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/CourseOutlineUiTestCase.php \Drupal\Tests\course\Functional\CourseOutlineUiTestCase::testCourseOutlineCrud()

Test creating a course object through the UI.

1 call to CourseOutlineUiTestCase::testCourseOutlineCrud()
CourseOutlineUiTestCase::testObjectDeletion in tests/src/Functional/CourseOutlineUiTestCase.php
Test that an object can be marked for deletion from the course outline without validation.

File

tests/src/Functional/CourseOutlineUiTestCase.php, line 30

Class

CourseOutlineUiTestCase
Test class for dealing with adding and removing elements from the course outline.

Namespace

Drupal\Tests\course\Functional

Code

function testCourseOutlineCrud() {
  $course = $this
    ->createCourse();
  $this
    ->drupalGet("course/{$course->id()}/outline");
  $this
    ->createCourseObjectUi($course);
  $this
    ->clickLink('Settings');
}