-> This test requires conditional access to be enabled by an administrator in Site administration > Advanced features.
1. Login as a teacher and set available from and to dates for a section.
2. Select 'Show section greyed-out, with restriction information' for 'Before section can be accessed'.
3. Login as a student and check that the section is only available between the available from and to dates. Outside these dates a message explaining that the activity is "Not available" will be displayed.