MDL-42282 Behat: Automated test for MDLQA-509

MDLQA-509: A teacher can prevent students from accessing an activity
between specified dates
MDL-42282 Behat: Max year in date feild is 2020 in 2.5