Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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
 question/tests/behat/behat_question_base.php
 lib/behat/behat_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!      |                                                              |

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]" "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.

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