Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Steps definitions related to mod_quiz.

Copyright: 2020 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 82 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 lib/behat/behat_base.php
 question/tests/behat/behat_question_base.php

Defines 1 class

behat_core_form:: (2 methods):
  resolve_page_url()
  resolve_page_instance_url()


Class: behat_core_form  - X-Ref

Steps definitions related to core_form.

resolve_page_url(string $page)   X-Ref
Convert page names to URLs for steps like 'When I am on the "core_form > [page name]" page'.

Recognised page names are:
| None so far!      |                                                              |

return: moodle_url the corresponding URL.
param: string $page name of the page, with the component name removed e.g. 'Admin notification'.

resolve_page_instance_url(string $type, string $identifier)   X-Ref
Convert page names to URLs for steps like 'When I am on the "[identifier]" "core_form > [page type]" page'.

Recognised page names are:
| pagetype | name meaning | description                         |
| Fixture  | script-name  | Fixture file name without extension |

The fixture name should be the filename without path or extension. E.g.
autocomplete-disabledif for lib/form/tests/fixtures/autocomplete-disabledif.php.

return: moodle_url the corresponding URL.
param: string $type identifies which type of page this is, e.g. 'Fixture'.
param: string $identifier identifies the particular page, e.g. 'autocomplete-disabledif'.