1. Login as a teacher, update a database activity and set 'Approval required' to Yes.
2. Login as student1 and add an entry.
3. Login as student2 and check that student1's entry is not visible.
4. Login as a teacher and approve student1's entry.
5. Login as student2 and check that student1's entry is now visible.
6. Login as teacher and undo approval (view single)
7. Ensure entry is marked with red background.
8. Approve it again and make sure there is no red background.