MDL-43717 behat: Replacing 2050 for a date eariler than the max timestamp 32bit limit
authorDavid Monllao <davidm@moodle.com>
Thu, 16 Jan 2014 06:55:02 +0000 (14:55 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 17 Jan 2014 02:37:59 +0000 (10:37 +0800)
All credit goes to Michael de Raadt.

completion/tests/behat/restrict_activity_by_date.feature

index 8e700b1..52e7a26 100644 (file)
@@ -37,13 +37,13 @@ Feature: Restrict activity availability through date conditions
       | assignsubmission_file_enabled | 0 |
       | id_availablefrom_day | 31 |
       | id_availablefrom_month | 12 |
-      | id_availablefrom_year | 2050 |
+      | id_availablefrom_year | 2037 |
       | id_showavailability | 1 |
     And I press "Save and return to course"
     And I log out
     When I log in as "student1"
     And I follow "Course 1"
-    Then I should see "Available from 31 December 2050."
+    Then I should see "Available from 31 December 2037."
     And "Test assignment 1" activity should be hidden
     And I log out