function CourseOutlineUiTestCase::testObjectDeletion in Course 7
Same name and namespace in other branches
- 7.2 tests/CourseOutlineUiTestCase.test \CourseOutlineUiTestCase::testObjectDeletion()
Test that an object can be marked for deletion from the course outline without validation.
File
- tests/
CourseOutlineUiTestCase.test, line 64
Class
- CourseOutlineUiTestCase
- Test class for dealing with adding and removing elements from the course outline.
Code
function testObjectDeletion() {
$this
->testCourseOutlineCrud();
$this
->drupalPost(NULL, array(), t('Delete'));
$this
->assertText('Object will be removed from outline');
}