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.

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

(no description)

File Size: 442 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.