[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: Single simple forum discussion type 3 In order to restrict the discussion topic to one 4 As a teacher 5 I need to create a forum with a single simple discussion 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | [email protected] | 11 | student1 | Student | 1 | [email protected] | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And I log in as "teacher1" 20 And I follow "Course 1" 21 And I turn editing mode on 22 And I add a "Forum" to section "1" and I fill the form with: 23 | Forum name | Single discussion forum name | 24 | Forum type | A single simple discussion | 25 | Description | Single discussion forum description | 26 27 @javascript 28 Scenario: Teacher can start the single simple discussion 29 When I follow "Single discussion forum name" 30 Then I should see "Single discussion forum description" in the "div.firstpost.starter" "css_element" 31 And I should not see "Add a new discussion topic" 32 33 @javascript 34 Scenario: Student can not add more discussions 35 Given I log out 36 And I log in as "student1" 37 And I follow "Course 1" 38 When I reply "Single discussion forum name" post from "Single discussion forum name" forum with: 39 | Subject | Reply to single discussion subject | 40 | Message | Reply to single discussion message | 41 Then I should not see "Add a new discussion topic" 42 And I should see "Reply" in the "div.firstpost.starter" "css_element" 43 And I should see "Reply to single discussion message"
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 |