Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

Unit tests for behat manager.

Copyright: 2016 Rajesh Taneja
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 701 lines (29 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: tool_behat_manager_util_testcase  - X-Ref

Behat manager tests.

setUp()   X-Ref
Setup test.


get_behat_config_util($behatconfigutil, $notheme = false)   X-Ref
Utility function to build mock object.

param: behat_config_util $behatconfigutil
param: bool $notheme
return: mixed

test_get_config_file_contents_with_single_run()   X-Ref
Behat config for single run.


test_get_config_file_contents_with_single_run_no_theme()   X-Ref
Behat config for single run with no theme installed.


test_get_config_file_contents_with_parallel_run()   X-Ref
Behat config for parallel run.


test_get_config_file_contents_with_parallel_run_optimize_tags()   X-Ref
Behat config for parallel run.


test_get_clean_feature_key_and_path($featurepath, $key, $cleanfeaturepath)   X-Ref
Test if clean features key and path is returned.


clean_features_path_list()   X-Ref
No description

test_get_config_file_contents_with_blacklisted_tags()   X-Ref
Behat config for blacklisted tags.


test_get_config_file_contents_with_blacklisted_features_contexts()   X-Ref
Behat config for blacklisted features.


test_core_features_to_include_in_specified_theme()   X-Ref
Behat config for blacklisted tags.