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.

(no description)

File Size: 75 lines (3 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_deprecated_base:: (1 method):
  deprecated_message()


Class: behat_deprecated_base  - X-Ref

Base class for steps definitions classes that contain deprecated steps.

To be extended by the deprecated steps definitions of the different Moodle components and add-ons.
For example, deprecated core steps can be found in lib/tests/behat/behat_deprecated.php ,
deprecated steps for mod_forum would be in mod/forum/tests/behat/behat_mod_forum_deprecated.php etc.

deprecated_message($alternatives, bool $throwexception = false)   X-Ref
Throws an exception if $CFG->behat_usedeprecated is not allowed.

param: string|array $alternatives Alternative/s to the requested step
param: bool $throwexception If set to true we always throw exception, irrespective of behat_usedeprecated setting.
return: void