[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @mod @mod_forum
   2  Feature: A teacher can move discussions between forums
   3    In order to move a discussion
   4    As a teacher
   5    I need to use the move discussion selector
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email                 |
  10        | teacher1 | Teacher   | 1        | teacher1@example.com  |
  11        | student1 | Student   | 1        | student1@example.com  |
  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  
  20    Scenario: A teacher can move discussions
  21      Given the following "activities" exist:
  22        | activity   | name                   | intro             | course | idnumber     | groupmode |
  23        | forum      | Test forum 1           | Test forum 2      | C1     | forum        | 0         |
  24        | forum      | Test forum 2           | Test forum 1      | C1     | forum        | 0         |
  25      And I log in as "student1"
  26      And I follow "Course 1"
  27      And I follow "Test forum 1"
  28      And I add a new discussion to "Test forum 1" forum with:
  29        | Subject | Discussion 1 |
  30        | Message | Test post message |
  31      And I log out
  32      And I log in as "teacher1"
  33      And I follow "Course 1"
  34      And I follow "Test forum 1"
  35      And I follow "Discussion 1"
  36      When I set the field "jump" to "Test forum 2"
  37      And I press "Move"
  38      Then I should see "This discussion has been moved to 'Test forum 2'."
  39      And I press "Move"
  40      And I should see "Discussion 1"


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