You are here

function CourseOutlineUiTestCase::testCourseOutlineCrud in Course 7

Same name and namespace in other branches
  1. 6 tests/CourseOutlineUiTestCase.test \CourseOutlineUiTestCase::testCourseOutlineCrud()
  2. 7.2 tests/CourseOutlineUiTestCase.test \CourseOutlineUiTestCase::testCourseOutlineCrud()

Test creating a course object through the UI.

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

File

tests/CourseOutlineUiTestCase.test, line 35

Class

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

Code

function testCourseOutlineCrud() {
  $courseNode = $this
    ->createCourseNode();
  $this
    ->drupalGet("node/{$courseNode->nid}/course-outline");
  $this
    ->createCourseObjectUi($courseNode);
  $this
    ->clickLink('Settings');
}