-
Functional Test
-
Minor
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
This test requires server access to run scheduled tasks and admin access
Test 1
- Create a course.
- Create a book.
- Add a chapter to the book with a tag.
- Go to the course reset page.
- Do not check anything.
- Submit the form.
- Look at the chapter in the book and confirm the tag is still there.
- Go to the course reset page.
- Check to remove the book tags.
- Submit the form.
- Confirm you get a message saying that the book tags have been removed.
- Look at the chapter in the book and confirm the tag is no longer there.
Test 2
- Create a forum.
- Add a discussion to the forum with a tag.
- Go to the course reset page.
- Do not check anything.
- Submit the form.
- Look at the discussion in the forum and confirm the tag is still there.
- Go to the course reset page.
- Check to delete all forum posts.
- Confirm the 'Remove all forum tags' checkbox becomes disabled.
- Submit the form.
- Confirm you get a message saying that the forum posts have been removed.
- Click on the forum and confirm all posts have been deleted.
- Run php admin/cli/schedule_task.php --execute=\\core\\task
tag_cron_task - Look in your 'mdl_tag' table and confirm the tags were deleted as well.
Test 3
- Create a forum.
- Add a discussion to the forum with a tag.
- Go to the course reset page.
- Check to remove all forum tags.
- Submit the form.
- Confirm you get a message saying that the forum tags have been removed.
- Click on the forum and confirm all the tags have been deleted.
Test 4
- Create a glossary.
- Add an entry to the glossary with a tag.
- Go to the course reset page.
- Do not check anything.
- Submit the form.
- Look at the entry in the glossary and confirm the tag is still there.
- Go to the course reset page.
- Check to delete all glossary entries.
- Confirm the 'Remove all glossary tags' checkbox becomes disabled.
- Submit the form.
- Confirm you get a message saying that the glossary entries have been removed.
- Click on the glossary and confirm all entries have been deleted.
- Run php admin/cli/schedule_task.php --execute=\\core\\task
tag_cron_task - Look in your 'mdl_tag' table and confirm the tags were deleted as well.
Test 5
- Create a glossary.
- Add an entry to the glossary with a tag.
- Go to the course reset page.
- Check to remove all glossary tags.
- Submit the form.
- Confirm you get a message saying that the glossary tags have been removed.
- Click on the glossary and confirm all the tags have been deleted.
- is a QA test written for
-
MDL-60129 Not all activites support deleting tags during course reset
- Closed