- Log in as a teacher and create a forum with a time period for blocking set.
- Set a post threshold for blocking and for warning.
- Ensure the student role does not have capability "mod/forum:postwithoutthrottling" within the forum.
- Log in as a student and check that a warning is show on the forum post screen after reaching the number of posts specified in the forum setting 'Post threshold for warning'.
- Keep posting until the number of posts reaches the forum setting 'Post threshold for blocking'.
- On your last post you will have been given a time frame that you are allowed to edit this post, ensure you still can edit it and are not thrown an error about reaching the threshold.
- Click to post another reply and ensure you are thrown the error "You have exceeded the posting threshold set for this forum".
- Change the the "mod/forum:postwithoutthrottling" capability for the student role to Allow.
- Check that the student can now post an unlimited number of times.