[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/tests/behat/ -> my_forum_posts.feature (source)

   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        | student1 | Student | 1 | student1@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        | student1 | C1 | student |
  17      And the following "activities" exist:
  18        | activity   | name                   | intro       | course | idnumber     | groupmode |
  19        | forum      | Test forum name        | Test forum  | C1     | forum        | 0         |
  20      And I log in as "student1"
  21      And I follow "Course 1"
  22      And I add a new discussion to "Test forum name" forum with:
  23        | Subject | Forum discussion 1 |
  24        | Message | How awesome is this forum discussion? |
  25      And I reply "Forum discussion 1" post from "Test forum name" forum with:
  26        | Message | Actually, I've seen better. |
  27      When I follow "Profile" in the user menu
  28      And I follow "Forum posts"
  29      Then I should see "How awesome is this forum discussion?"
  30      And I should see "Actually, I've seen better."
  31      And I follow "Profile" in the user menu
  32      And I follow "Forum discussions"
  33      And I should see "How awesome is this forum discussion?"
  34      And I should not see "Actually, I've seen better."


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1