This test requires a lesson activity containing more than one question.
1. Login as a teacher, update a lesson activity and set 'Allow student review' to No 'Provide option to try a question again' to yes, 'Use default feedback' to yes and the 'Maximum number of attempts' to 2.
2. Login as a student and attempt the activity.
3. Answer a question wrongly and and check that the message 'You have 1 attempt(s) remaining' is displayed.
4. Click the continue button and answer the question wrongly again.
5. Check that you are no longer allowed to attempt the question.