1. Login as a teacher and create a forum with a time period for blocking set.
2. Set a post threshold for blocking and for warning.
3. Ensure the student role does not have capability "mod/forum:postwithoutthrottling" within the forum.
4. Login as a student and check that a warning is given after posting a certain number of posts.
5. Check that it is no longer possible to post after posting up to the post threshold within the set time period.
6. Change the the "mod/forum:postwithoutthrottling" capability for the student role to Allow.
7. Check that the student can now post an unlimited number of times.