You are here

function CourseObjectNodeTestCase::createCourseObjectUi in Course 7.2

Create a course object through the interface.

Parameters

stdClass $courseNode:

1 call to CourseObjectNodeTestCase::createCourseObjectUi()
CourseObjectNodeTestCase::testObjectInstanceDeletion in tests/CourseObjectNodeTestCase.test
Test that an object's instance can be deleted.

File

tests/CourseObjectNodeTestCase.test, line 60

Class

CourseObjectNodeTestCase
Description of CourseObjectNodeTestCase

Code

function createCourseObjectUi($courseNode) {

  // Add a new course content object.
  $edit = array();
  $edit["more[object_type]"] = "course_content-course_test_content";
  $this
    ->drupalPost(NULL, $edit, t('Add object'));
  $this
    ->assertText(t('Course test content'));
}