Create a backup of a course that has users, custom enrolment methods (for example "self"), activities, blocks, etc.
Go to Site Administration > Courses > General restore defaults and create some funny set of default settings, lock some of them.
As a manager (not admin!) restore this backup and make sure the defaults applied: try restoring as a new course, merging into existing and replacing existing (delete existing course contents).
Make sure all defaults applied properly
When restoring into existing course experiment with "Overwrite course configuration" and keeping/overwriting course name and startdate - this hopefully became more clear in the UI now.
Revoke from the manager one (or all) of capabilities:
moodle/course:changeshortname
moodle/course:changefullname
moodle/restore:rolldates
In the default settings lock defaults to overwrite course names/dates.
As a manger restore the course merging/replacing the existing course and make sure that names/dates were NOT changed and permission absence wins over config lock.
Experiment with editing section name using the sectionedit form - make sure you can switch between default and custom section name
You need WAVE chrome extension
Test 1
Log in as admin
Go to Site administration > Courses > Restore course
Upload the provided backup file into the "Import a backup file" file area section and click on the restore button
Follow the pages to restore the backup file into a new course. As you follow, on each page press the WAVE extension button and verify that:
There is no "Missing form label" error on any page
There is no "Empty form label" error on any page
There is no "Orphaned form label" alert on any page
Test 2:
Log in as admin
Create a new course
Visit the course
Click on the cog menu and then select 'import'
Using the WAVE button verify that:
There is no "Missing form label" error on any page
There is no "Empty form label" error on any page
There is no "Orphaned form label" alert on any page
Select the course you restored on Test 1
Repeat step 5
Proceed with the import. As you proceed, repeat step 5 on each page.
Regression test (copied from MDL-34859 ):
Create a backup of a course that has users, custom enrolment methods (for example "self"), activities, blocks, etc.
Go to Site Administration > Courses > General restore defaults and create some funny set of default settings, lock some of them.
As a manager (not admin!) restore this backup and make sure the defaults applied: try restoring as a new course, merging into existing and replacing existing (delete existing course contents).
Make sure all defaults applied properly
When restoring into existing course experiment with "Overwrite course configuration" and keeping/overwriting course name and startdate - this hopefully became more clear in the UI now.
Revoke from the manager one (or all) of capabilities:
moodle/course:changeshortname
moodle/course:changefullname
moodle/restore:rolldates
In the default settings lock defaults to overwrite course names/dates.
As a manger restore the course merging/replacing the existing course and make sure that names/dates were NOT changed and permission absence wins over config lock.
Experiment with editing section name using the sectionedit form - make sure you can switch between default and custom section name
1
International 4.0 - Sprint 7
Description
There are missing labels in the "Destination" step of the restore process.
Radio buttons
Search input box
For example, when restoring an activity backup in a course: