function CourseOutlineUiTest::createCourseObjectUi in Course 3.x
Create a course object through the interface.
Parameters
stdClass $courseNode:
2 calls to CourseOutlineUiTest::createCourseObjectUi()
- CourseOutlineUiTest::testCourseOutlineCrud in tests/
src/ Functional/ CourseOutlineUiTest.php - Test creating a course object through the UI.
- CourseOutlineUiTest::testCourseOutlineMaxOccurences in tests/
src/ Functional/ CourseOutlineUiTest.php - Test maximum course objects per course.
File
- tests/
src/ Functional/ CourseOutlineUiTest.php, line 18
Class
- CourseOutlineUiTest
- Test class for dealing with adding and removing elements from the course outline.
Namespace
Drupal\Tests\course\FunctionalCode
function createCourseObjectUi($courseNode) {
// Add a new course content object.
$edit = array();
$edit["more[object_type]"] = 'course_test_object';
$this
->submitForm($edit, t('Add object'));
$this
->assertText(t('Test course object'));
}