Hide
Test 1 - upgrade with existing plugin.
- On Moodle 2.5 or 2.4 (either one is enough) install format_singleactivity from plugins database
- Create a course in "Single activity" format
- Backup this course, save the backup file
- Upgrade to master (remove folder /course/format/singleactivity first)
- Make sure there are no errors, course is still operational
- Restore the course from backup made on previous version, it should restore the content (maybe with version warnings).
Test 2 - creating the course
- Create a course in "Single activity" format, select any activity type in course settings
- Proceed to the course, make sure you are redirected to add activity page, do not create activity
- As a student try to access the course, you should see the empty course
- As a teacher try to access the course, make sure you are redirected to the create activity page
- Create an activity
- Make sure student can access it
- Make sure the navigation menu looks right, everything inside the activity is accessible
- Create a course in "Single activity" format, select "Label" as activity type, add module (alternatively add folder that is displayed inline)
- Make sure it is accessible by both student and teacher correctly
- Create a course in "Single activity" format, select "Database" as activity type (or any other type that extends the module navigation), add the module itself
- Make sure it is accessible by both student and teacher correctly, navigation menu is extended for the module
- Enable Assignment 2.2
- Create a course in "Single activity" format, select "Assignment 2.2" as activity type. It requires subtype (now not recommended but not completely deprecated)
- Teacher is not redirected to the "Add activity page", the empty course should be displayed instead. Teacher can turn the editing mode on and add module.
- Make sure it is accessible by both student and teacher correctly
Test 3 - changing the course format
- Create a course in any other format, add several activities to it
- Edit the course setting and change format to "Single activity", specify the activity type (ignore the warning about extra activities)
- If the course had the activity with this type it should become the main, otherwise teacher should be redirected to "Add activity" screen.
- Make sure all redirections look all right, all other activities are accessed in course navigation as "orphaned", and they are not visible to students.
Test 4 - hidden activity
(this bug was recently reported for this format, let's make sure it is fixed)
- Create a situation when the main activity in the course is not visible to the student (either remains hidden after changing the course format or edit the activity settings and make it hidden or add conditional access, etc).
- Try to access the course as a student, make sure everything looks ok
Test 5 - backup and restore
- Backup course in "Single activity" format
- Restore it as a new course, into the same course, make sure everything works fine
Show
Test 1 - upgrade with existing plugin.
On Moodle 2.5 or 2.4 (either one is enough) install format_singleactivity from plugins database
Create a course in "Single activity" format
Backup this course, save the backup file
Upgrade to master (remove folder /course/format/singleactivity first)
Make sure there are no errors, course is still operational
Restore the course from backup made on previous version, it should restore the content (maybe with version warnings).
Test 2 - creating the course
Create a course in "Single activity" format, select any activity type in course settings
Proceed to the course, make sure you are redirected to add activity page, do not create activity
As a student try to access the course, you should see the empty course
As a teacher try to access the course, make sure you are redirected to the create activity page
Create an activity
Make sure student can access it
Make sure the navigation menu looks right, everything inside the activity is accessible
Create a course in "Single activity" format, select "Label" as activity type, add module (alternatively add folder that is displayed inline)
Make sure it is accessible by both student and teacher correctly
Create a course in "Single activity" format, select "Database" as activity type (or any other type that extends the module navigation), add the module itself
Make sure it is accessible by both student and teacher correctly, navigation menu is extended for the module
Enable Assignment 2.2
Create a course in "Single activity" format, select "Assignment 2.2" as activity type. It requires subtype (now not recommended but not completely deprecated)
Teacher is not redirected to the "Add activity page", the empty course should be displayed instead. Teacher can turn the editing mode on and add module.
Make sure it is accessible by both student and teacher correctly
Test 3 - changing the course format
Create a course in any other format, add several activities to it
Edit the course setting and change format to "Single activity", specify the activity type (ignore the warning about extra activities)
If the course had the activity with this type it should become the main, otherwise teacher should be redirected to "Add activity" screen.
Make sure all redirections look all right, all other activities are accessed in course navigation as "orphaned", and they are not visible to students.
Test 4 - hidden activity
(this bug was recently reported for this format, let's make sure it is fixed)
Create a situation when the main activity in the course is not visible to the student (either remains hidden after changing the course format or edit the activity settings and make it hidden or add conditional access, etc).
Try to access the course as a student, make sure everything looks ok
Test 5 - backup and restore
Backup course in "Single activity" format
Restore it as a new course, into the same course, make sure everything works fine