[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: Posting to groups in a separate group discussion when restricted to groupings 3 In order to post to groups in a forum with separate groups and groupings 4 As a teacher 5 I need to have groups configured to post to a group 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | teacher1 | teacher1 | teacher1@example.com | 11 And the following "courses" exist: 12 | fullname | shortname | category | 13 | Course 1 | C1 | 0 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | teacher | 17 And the following "groups" exist: 18 | name | course | idnumber | 19 | G1G1 | C1 | G1G1 | 20 | G1G2 | C1 | G1G2 | 21 | G2G1 | C1 | G2G1 | 22 And the following "groupings" exist: 23 | name | course | idnumber | 24 | G1 | C1 | G1 | 25 | G2 | C1 | G2 | 26 And the following "group members" exist: 27 | user | group | 28 | teacher1 | G1G1 | 29 | teacher1 | G1G2 | 30 | teacher1 | G2G1 | 31 And the following "grouping groups" exist: 32 | grouping | group | 33 | G1 | G1G1 | 34 | G1 | G1G2 | 35 | G2 | G2G1 | 36 And I log in as "admin" 37 And I am on site homepage 38 And I follow "Course 1" 39 And I turn editing mode on 40 And I add a "Forum" to section "1" and I fill the form with: 41 | Forum name | Multiple groups forum | 42 | Forum type | Standard forum for general use | 43 | Description | Standard forum description | 44 | Group mode | Separate groups | 45 | Grouping | G1 | 46 And I add a "Forum" to section "1" and I fill the form with: 47 | Forum name | Single groups forum | 48 | Forum type | Standard forum for general use | 49 | Description | Standard forum description | 50 | Group mode | Separate groups | 51 | Grouping | G2 | 52 And I log out 53 54 Scenario: Teacher with accessallgroups can post in all groups 55 Given I log in as "teacher1" 56 And I follow "Course 1" 57 And I follow "Multiple groups forum" 58 When I click on "Add a new discussion topic" "button" 59 Then the "Group" select box should contain "All participants" 60 And the "Group" select box should contain "G1G1" 61 And the "Group" select box should contain "G1G2" 62 And I follow "Course 1" 63 And I follow "Single groups forum" 64 And I click on "Add a new discussion topic" "button" 65 And the "Group" select box should contain "All participants" 66 And the "Group" select box should contain "G2G1" 67 And I should not see "Post a copy to all groups" 68 69 Scenario: Teacher in all groups but without accessallgroups can post in either group but not to All Participants 70 And I log in as "admin" 71 And I set the following system permissions of "Non-editing teacher" role: 72 | moodle/site:accessallgroups | Prohibit | 73 And I log out 74 Given I log in as "teacher1" 75 And I follow "Course 1" 76 And I follow "Multiple groups forum" 77 When I click on "Add a new discussion topic" "button" 78 Then the "Group" select box should not contain "All participants" 79 And the "Group" select box should contain "G1G1" 80 And the "Group" select box should contain "G1G2" 81 And I follow "Course 1" 82 And I follow "Single groups forum" 83 And I click on "Add a new discussion topic" "button" 84 And I should see "G2G1" 85 And "Group" "select" should not exist
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |