Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

Restore date tests.

Copyright: 2017 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 413 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: restore_stepslib_date_testcase  - 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.