[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/calendar_upcoming/tests/behat/ -> block_calendar_upcoming_course.feature (source)

   1  @block  @block_calendar_upcoming
   2  Feature: Enable the upcoming events block in a course
   3    In order to enable the calendar block in a course
   4    As a teacher
   5    I can view the event in the upcoming events block
   6  
   7    Scenario: View a global event in the upcoming events block in a course
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email | idnumber |
  10        | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
  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        | teacher1 | C1 | editingteacher |
  17      When I log in as "admin"
  18      And I create a calendar event with form data:
  19        | id_eventtype | Site |
  20        | id_name | My Site Event |
  21      And I log out
  22      When I log in as "teacher1"
  23      Then I should see "My Site Event" in the "Upcoming events" "block"


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