Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

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

Defines 1 class


Class: restore_stepslib_date_test  - X-Ref

Restore date tests.

test_grade_item_date_restore()   X-Ref
Restoring a manual grade item does not result in the timecreated or
timemodified dates being changed.


test_course_section_date_restore()   X-Ref
The course section timemodified date does not get rolled forward
when the course is restored.


test_badge_date_restore()   X-Ref
Test that the timecreated and timemodified dates are not rolled forward when restoring
badge data.


test_calendarevents_date_restore()   X-Ref
Test that course calendar events timemodified field is not rolled forward
when restoring the course.


test_course_completion_date_restore()   X-Ref
Testing that the timeenrolled, timestarted, and timecompleted fields are not rolled forward / back
when doing a course restore.


test_grade_grade_date_restore()   X-Ref
Testing that the grade grade date information is not changed in the gradebook when a course
restore is performed.


test_usercompletion_date_restore()   X-Ref
Checking that the user completion of an activity relating to the timemodified field does not change
when doing a course restore.


test_usercompletion_view_restore()   X-Ref
Checking that the user completion of an activity relating to the view field does not change
when doing a course restore.


test_question_attempt_steps_date_restore()   X-Ref
Ensuring that the timemodified field of the question attempt steps table does not change when
a course restore is done.