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 with admin presets.

Author: Sylvain Revenu | Pimenko
Copyright: 2021 Pimenko <support@pimenko.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 130 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 lib/behat/behat_base.php
 lib/behat/behat_field_manager.php

Defines 1 class


Class: behat_admin_presets  - X-Ref

Steps definitions related with admin presets.

following_in_the_should_download_between_and_bytes(string $link, string $selectortype,string $nodeelement, string $nodeselectortype, int $minexpectedsize, int $maxexpectedsize)   X-Ref
Downloads the file from a specific link on the page and checks the size is in a given range.

Only works if the link has an href attribute. Javascript downloads are
not supported. Currently, the href must be an absolute URL.

The range includes the endpoints. That is, a 10 byte file in considered to
be between "5" and "10" bytes, and between "10" and "20" bytes.

param: string $link the text of the link.
param: string $selectortype The type of what we look for
param: string $nodeelement Element we look in
param: string $nodeselectortype The type of selector where we look in
param: int $minexpectedsize the minimum expected file size in bytes.
param: int $maxexpectedsize the maximum expected file size in bytes.
return: void

download_file_from_link_within_node(string $selectortype, string $link,string $nodeselectortype, string $nodeelement)   X-Ref
No description