-
Functional Test
-
Critical
-
Moodle 4.3
-
None
Test Pre-requisites:
Create Test Data
- As an admin, create a new course
- Create 4 new groups with those corresponding values:
Group name Group ID number group-id-1 group-id-1 group-id-2 group-id-2 group-noid-1 group-noid-2
- Back on the groups page, click on the tab 'Groupings'
- Create 4 new groupings
Grouping name Grouping ID number grouping-id-1 grouping-id-1 grouping-id-2 grouping-id-2 grouping-noid-1 grouping-noid-2
Test 1 steps:
- Navigate to Settings -> Course administration -> Backup
- Backup the course making sure you select 'User data' and set the filename to 'test_id_number.mbz'
- As an admin, navigate to Settings -> Course administration -> Users -> Groups
- Delete 'group-id-1' and 'group-noid-1'
- Switch to 'Groupings' and delete 'grouping-id-1' and 'groupind-noid-1'
- Navigate to Settings -> Course administration -> Restore
- Select 'Restore' for 'test_id_number.mbz'. Click continue.
- Restore using the button 'Continue' under 'Restore into this course' with 'Merge the backup course into this course' selected.
- Confirm that the groups and groupings have been created
- Confirm that 'group-id-1' and 'grouping-id-1' have a corresponding ID number
- Confirm that 'group-noid-1' and 'grouping-noid-1' don't have an ID number
Test 2 steps:
- Enrol a teacher in the course
- Navigate to Settings -> Course administration -> Users -> Permissions
- Remove 'Teacher' from the permission 'moodle/course:changeidnumber'
- Navigate to Settings -> Course administration -> Users -> Groups
- Delete 'group-id-1' and 'group-noid-1'
- Switch to 'Groupings' and delete 'grouping-id-1' and 'groupind-noid-1'
- Log in as the teacher and navigate to Course administration -> Restore
- Select 'Restore' for 'test_id_number.mbz'. Click continue.
- Restore using the button 'Continue' under 'Restore into this course' with 'Merge the backup course into this course' selected.
- Confirm that 'group-id-1' and 'group-noid-1' have been created but none of them have an ID number
- Confirm that 'grouping-id-1' and 'grouping-noid-1' have been created but none of them have an ID number