Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

File Size: 839 lines (34 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: copy_helper_test  - X-Ref

Course copy tests.

setUp()   X-Ref
Set up tasks for all tests.


test_process_formdata_missing_fields()   X-Ref
Test process form data with invalid data.


test_process_formdata()   X-Ref
Test processing form data.


test_cleanup_orphaned_copy_controllers()   X-Ref
Test orphaned controller cleanup.


test_create_copy()   X-Ref
Test creating a course copy.


test_get_copies()   X-Ref
Test getting the current copies.


test_get_copies_invalid_state()   X-Ref
Test getting the current copies when they are in an invalid state.


test_get_copies_course()   X-Ref
Test getting the current copies for specific course.


test_get_copies_course_deleted()   X-Ref
Test getting the current copies if course has been deleted.


test_course_copy()   X-Ref
Test course copy.


test_course_copy_no_users()   X-Ref
Test course copy, not including any users (or data).


test_course_copy_students_data()   X-Ref
Test course copy, including students and their data.


test_course_copy_no_data()   X-Ref
Test course copy, not including any users (or data).


test_malformed_instantiation()   X-Ref
Test instantiation with incomplete formdata.