[ Index ] |
PHP Cross Reference of moodle-2.8 |
[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 | [email protected] | 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 follow "Course 1" 38 And I turn editing mode on 39 And I add a "Forum" to section "1" and I fill the form with: 40 | Forum name | Multiple groups forum | 41 | Forum type | Standard forum for general use | 42 | Description | Standard forum description | 43 | Group mode | Separate groups | 44 | Grouping | G1 | 45 And I add a "Forum" to section "1" and I fill the form with: 46 | Forum name | Single groups forum | 47 | Forum type | Standard forum for general use | 48 | Description | Standard forum description | 49 | Group mode | Separate groups | 50 | Grouping | G2 | 51 And I log out 52 53 Scenario: Teacher with accessallgroups can post in all groups 54 Given I log in as "teacher1" 55 And I follow "Course 1" 56 And I follow "Multiple groups forum" 57 When I click on "Add a new discussion topic" "button" 58 Then the "Group" select box should contain "All participants" 59 And the "Group" select box should contain "G1G1" 60 And the "Group" select box should contain "G1G2" 61 And I follow "Course 1" 62 And I follow "Single groups forum" 63 And I click on "Add a new discussion topic" "button" 64 And the "Group" select box should contain "All participants" 65 And the "Group" select box should contain "G2G1" 66 67 @javascript 68 Scenario: Teacher in all groups but without accessallgroups can post in either group but not to All Participants 69 And I log in as "admin" 70 And I set the following system permissions of "Non-editing teacher" role: 71 | moodle/site:accessallgroups | Prohibit | 72 And I log out 73 Given I log in as "teacher1" 74 And I follow "Course 1" 75 And I follow "Multiple groups forum" 76 When I click on "Add a new discussion topic" "button" 77 Then the "Group" select box should not contain "All participants" 78 And the "Group" select box should contain "G1G1" 79 And the "Group" select box should contain "G1G2" 80 And I follow "Course 1" 81 And I follow "Single groups forum" 82 And I click on "Add a new discussion topic" "button" 83 And I should see "G2G1" 84 And "Group" "select" should not exist
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |