[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/course/tests/behat/ -> course_creation.feature (source)

   1  @core @core_course
   2  Feature: Managers can create courses
   3    In order to group users and contents
   4    As a manager
   5    I need to create courses and set default values on them
   6  
   7    @javascript
   8    Scenario: Courses are created with the default forum and blocks
   9      Given the following "users" exist:
  10        | username | firstname | lastname | email |
  11        | teacher1 | Teacher | 1 | [email protected] |
  12        | student1 | Student | 1 | [email protected] |
  13      And I log in as "admin"
  14      And I create a course with:
  15        | Course full name | Course 1 |
  16        | Course short name | C1 |
  17      And I enrol "Teacher 1" user as "Teacher"
  18      And I enrol "Student 1" user as "Student"
  19      And I log out
  20      When I log in as "teacher1"
  21      And I follow "Course 1"
  22      Then "Latest news" "block" should exist
  23      And I follow "News forum"
  24      And "Add a new topic" "button" should exist
  25      And "Forced subscription" "link" should not exist
  26      And I log out
  27      And I log in as "student1"
  28      And I follow "Course 1"
  29      And I follow "News forum"
  30      And "Add a new topic" "button" should not exist
  31      And I should see "Forced subscription" in the "Administration" "block"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1