"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "course/tests/behat/course_creation.feature" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

course_creation.feature  (moodle-3.6.5.tgz):course_creation.feature  (moodle-3.6.6.tgz)
skipping to change at line 71 skipping to change at line 71
And the following fields match these values: And the following fields match these values:
| Course full name | Course 2 | | Course full name | Course 2 |
| Course short name | Course 2 | | Course short name | Course 2 |
| Course summary | Course 2 summary | | Course summary | Course 2 summary |
| id_startdate_day | 24 | | id_startdate_day | 24 |
| id_startdate_month | October | | id_startdate_month | October |
| id_startdate_year | 2015 | | id_startdate_year | 2015 |
| id_enddate_day | 24 | | id_enddate_day | 24 |
| id_enddate_month | October | | id_enddate_month | October |
| id_enddate_year | 2016 | | id_enddate_year | 2016 |
Scenario: Create a course as a custom course creator
Given the following "users" exist:
| username | firstname | lastname | email |
| kevin | Kevin | the | kevin@example.com |
And the following "roles" exist:
| shortname | name | archetype |
| creator | Creator | |
And the following "system role assigns" exist:
| user | role | contextlevel |
| kevin | creator | System |
And I log in as "admin"
And I set the following system permissions of "Creator" role:
| capability | permission |
| moodle/course:create | Allow |
| moodle/course:manageactivities | Allow |
| moodle/course:viewparticipants | Allow |
| moodle/role:assign | Allow |
And I log out
And I log in as "kevin"
And I am on site homepage
When I press "Add a new course"
And I set the following fields to these values:
| Course full name | My first course |
| Course short name | myfirstcourse |
And I press "Save and display"
And I follow "Participants"
Then I should see "Kevin the"
And I should not see "Teacher"
And I log out
Given I log in as "admin"
And I define the allowed role assignments for the "Creator" role as:
| Teacher | Assignable |
And I log out
And I log in as "kevin"
And I am on site homepage
And I turn editing mode on
When I press "Add a new course"
And I set the following fields to these values:
| Course full name | My second course |
| Course short name | mysecondcourse |
And I press "Save and display"
And I follow "Participants"
Then I should see "Kevin the"
And I should see "Teacher"
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)