[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: A user can view their posts and discussions 3 In order to ensure a user can view their posts and discussions 4 As a student 5 I need to view my post and discussions 6 7 Scenario: View the student's posts and discussions 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 | Test forum name | 24 | Forum type | Standard forum for general use | 25 | Description | Test forum description | 26 And I log out 27 And I log in as "student1" 28 And I follow "Course 1" 29 And I add a new discussion to "Test forum name" forum with: 30 | Subject | Forum discussion 1 | 31 | Message | How awesome is this forum discussion? | 32 And I reply "Forum discussion 1" post from "Test forum name" forum with: 33 | Message | Actually, I've seen better. | 34 When I navigate to "Posts" node in "My profile > Forum posts" 35 Then I should see "How awesome is this forum discussion?" 36 And I should see "Actually, I've seen better." 37 And I navigate to "Discussions" node in "My profile > Forum posts" 38 And I should see "How awesome is this forum discussion?" 39 And I should not see "Actually, I've seen better."
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 |