Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.