Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]
(no description)
File Size: | 120 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file question/tests/behat/behat_question_base.php |
behat_core_question:: (3 methods):
resolve_page_url()
resolve_page_instance_url()
find_question_by_name()
Class: behat_core_question - X-Ref
Behat navigation hooks for core_question.resolve_page_url(string $page) X-Ref |
Convert page names to URLs for steps like 'When I am on the "[page name]" page'. Recognised page names are: | None so far! | | param: string $page name of the page, with the component name removed e.g. 'Admin notification'. return: moodle_url the corresponding URL. |
resolve_page_instance_url(string $type, string $identifier) X-Ref |
Convert page names to URLs for steps like 'When I am on the "[identifier]" "[page type]" page'. Recognised page names are: | pagetype | name meaning | description | | course question bank | Course name | The question bank for a course | | course question import | Course name | The import questions screen for a course | | course question export | Course name | The export questions screen for a course | | preview | Question name | The screen to preview a question | | edit | Question name | The screen to edit a question | param: string $type identifies which type of page this is, e.g. 'Preview'. param: string $identifier identifies the particular page, e.g. 'My question'. return: moodle_url the corresponding URL. |
find_question_by_name(string $questionname) X-Ref |
Find a question, and where it is, from the question name. This is a helper used by resolve_page_instance_url. param: string $questionname return: array with three elemnets, int question id, a string 'cmid' or 'courseid', |