Skip to content

Commit

Permalink
Merge branch 'MDL-66558-master' of https://github.com/snake/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Aug 30, 2019
2 parents 78168d7 + cb14d4d commit f69543d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions mod/assign/tests/behat/relative_dates.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ So that students can enter the course at any time and have a fixed period in whi
| enablecourserelativedates | 1 |
And the following "courses" exist:
| fullname | shortname | category | groupmode | relativedatesmode | startdate |
| Course 1 | C1 | 0 | 1 | 1 | ##first day of -2 months## |
| Course 1 | C1 | 0 | 1 | 1 | ##first day of -4 months## |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student1@example.com |
And the following "course enrolments" exist:
# Two students, one started 2 months ago and one this month.
# Two students, one started 4 months ago and one this month.
| user | course | role | timestart |
| teacher1 | C1 | editingteacher | ##first day of last month## |
| student1 | C1 | student | ##first day of -2 months## |
| student1 | C1 | student | ##first day of -4 months## |
| student2 | C1 | student | ##first day of this month## |
# One assignment, valid for 2 months.
And the following "activities" exist:
| activity | name | intro | course | idnumber | assignsubmission_onlinetext_enabled | timeopen | duedate |
| assign | Test assignment name | Test assignment description | C1 | assign0 | 1 |##first day of -2 months## | ##last day of -2 months## |
| assign | Test assignment name | Test assignment description | C1 | assign0 | 1 |##first day of -4 months## | ##last day of -3 months## |
When I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Expand All @@ -39,21 +40,22 @@ So that students can enter the course at any time and have a fixed period in whi
| enablecourserelativedates | 1 |
And the following "courses" exist:
| fullname | shortname | category | groupmode | relativedatesmode | startdate |
| Course 1 | C1 | 0 | 1 | 1 | ##first day of 3 months ago## |
| Course 1 | C1 | 0 | 1 | 1 | ##first day of 4 months ago## |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student1@example.com |
And the following "course enrolments" exist:
# Two students, one started 3 months ago and one this month.
# Two students, one started 4 months ago and one this month.
| user | course | role | timestart |
| teacher1 | C1 | editingteacher | ##first day of 3 months ago## |
| student1 | C1 | student | ##first day of 3 months ago## |
| teacher1 | C1 | editingteacher | ##first day of 4 months ago## |
| student1 | C1 | student | ##first day of 4 months ago## |
| student2 | C1 | student | ##first day of this month## |
# One assignment, valid for 2 months.
And the following "activities" exist:
| activity | name | intro | course | idnumber | assignsubmission_onlinetext_enabled | timeopen | duedate |
| assign | Test assignment name | Test assignment description | C1 | assign0 | 1 |##first day of 3 months ago## | ##first day of 2 months ago## |
| assign | Test assignment name | Test assignment description | C1 | assign0 | 1 |##first day of 4 months ago## | ##last day of 3 months ago## |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Expand Down

0 comments on commit f69543d

Please sign in to comment.