- Log in as teacher and go to a course.
- Ensure you don't see 'Recycle bin' link either via the gear menu or in the Administration. block (depending upon your theme).
- Turn editing on and add an activity e.g. a forum, and click the 'Save and return to course' button.
- Delete the activity.
- Verify that you now see a 'Recycle bin' link either via the gear menu or in the Administration block (depending upon your theme). Note that the 'Recycle bin' link only appears after the cron has run, so you may need to wait a moment and then refresh the page.
- Follow the 'Recycle bin' link and verify that the deleted activity is listed.
- Click Restore and verify that the message '
has been restored.' is displayed.
- Return to the course page and verify that the activity is shown.