function CourseTestCase::createCourseNode in Course 6
Same name and namespace in other branches
- 7.2 tests/CourseTestCase.test \CourseTestCase::createCourseNode()
- 7 tests/CourseTestCase.test \CourseTestCase::createCourseNode()
Create a course node using the test content type.
Return value
stdClass
29 calls to CourseTestCase::createCourseNode()
- CourseAccessTestCase::testDurationExpiration in tests/
CourseAccessTestCase.test - Test the enrollment duration. This does not test the enrollment end date being set correctly.
- CourseAccessTestCase::testReleaseExpiration in tests/
CourseAccessTestCase.test - Test the open/close date functionality.
- CourseContextTestCase::testDetermineContext in tests/
CourseContextTestCase.test - Testing finding course and objects via parameter search.
- CourseContextTestCase::testMultiContext in tests/
CourseContextTestCase.test - Test objects that belong to multiple courses.
- CourseEnrollmentTestCase::testCourseDuration in tests/
CourseEnrollmentTestCase.test - Test for course duration being set properly on enrollment.
File
- tests/
CourseTestCase.test, line 28
Class
- CourseTestCase
- Master class for Course tests.
Code
function createCourseNode(array $extra = array()) {
$node = $this
->drupalCreateNode(array(
'type' => 'course_test',
) + $extra);
return $node;
}