Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

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.