Course-related step definition overrides for the Classic theme.
More...
|
| getSession ($name=null) |
| Returns the Mink session.
|
|
| i_add_to_section ($activity, $section) |
| Opens the activity chooser and opens the activity/resource form page.
|
|
| i_add_to_section_and_i_fill_the_form_with ($activity, $section, TableNode $data) |
| Adds the selected activity/resource filling the form data with the specified field/value pairs.
|
|
| i_create_a_course_with (TableNode $table) |
| Creates a new course with the provided table data matching course settings names with the desired values.
|
|
| i_go_to_the_courses_management_page () |
| Goes to the system courses/categories management page.
|
|
| i_navigate_to_course_participants () |
| Go to the course participants.
|
|
|
| is_course_editor () |
| Returns whether the user has permission to modify this course.
|
|
Course-related step definition overrides for the Classic theme.
- Copyright
- 2019 Michael Hawkins
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Copyright
- 2019 Michael Hawkins
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_named_replacements()
static behat_course::get_named_replacements |
( |
| ) |
|
|
staticinherited |
Return a list of the Mink named replacements for the component.
Named replacements allow you to define parts of an xpath that can be reused multiple times, or in multiple xpaths.
This method should return a list of behat_component_named_replacement and the docs on that class explain how it works.
- Return values
-
behat_component_named_replacement[] | |
◆ get_partial_named_selectors()
static behat_course::get_partial_named_selectors |
( |
| ) |
|
|
staticinherited |
Return the list of partial named selectors.
- Return values
-
◆ getSession()
behat_session_interface::getSession |
( |
| $name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
Implemented in behat_form_field.
◆ i_add_to_section()
behat_course::i_add_to_section |
( |
| $activity, |
|
|
| $section ) |
|
inherited |
Opens the activity chooser and opens the activity/resource form page.
Sections 0 and 1 are also allowed on frontpage.
@Given /^I add a "(?P<activity_or_resource_name_string>(?:[^"]|::")*)" to section "(?P<section_number>\d+)"$/
- Exceptions
-
ElementNotFoundException | Thrown by behat_base\find |
- Parameters
-
string | $activity | |
int | $section | |
◆ i_add_to_section_and_i_fill_the_form_with()
behat_course::i_add_to_section_and_i_fill_the_form_with |
( |
| $activity, |
|
|
| $section, |
|
|
TableNode | $data ) |
|
inherited |
Adds the selected activity/resource filling the form data with the specified field/value pairs.
Sections 0 and 1 are also allowed on frontpage.
@When /^I add a "(?P<activity_or_resource_name_string>(?:[^"]|::")*)" to section "(?P<section_number>\d+)" and I fill the form with:$/
- Parameters
-
string | $activity | The activity name |
int | $section | The section number |
TableNode | $data | The activity field/value data |
◆ i_create_a_course_with()
behat_course::i_create_a_course_with |
( |
TableNode | $table | ) |
|
|
inherited |
Creates a new course with the provided table data matching course settings names with the desired values.
@Given /^I create a course with:$/
- Parameters
-
TableNode | $table | The course data |
◆ i_go_to_the_courses_management_page()
behat_course::i_go_to_the_courses_management_page |
( |
| ) |
|
|
inherited |
Goes to the system courses/categories management page.
@Given /^I go to the courses management page$/
◆ is_course_editor()
behat_theme_classic_behat_course::is_course_editor |
( |
| ) |
|
|
protected |
Returns whether the user has permission to modify this course.
- Return values
-
◆ PAGE_READY_JS
const behat_session_interface::PAGE_READY_JS |
|
inherited |
Initial value:= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.
The documentation for this class was generated from the following file:
- theme/classic/tests/behat/behat_theme_classic_behat_course.php