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.

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

(no description)

File Size: 407 lines (17 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_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.