MDL-78317 behat: Remove finally deprecated methods

These methods are all very old and well out of the deprecation
timeframe. These are all ready for final removal per policy.
This commit is contained in:
Andrew Nicols 2023-05-19 10:57:40 +08:00
parent 063ffc8073
commit 88b5313950
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
4 changed files with 0 additions and 120 deletions

View File

@ -340,20 +340,4 @@ class behat_field_manager {
return $fieldtype;
}
/**
* @deprecated since Moodle 2.6 MDL-39634 - please do not use this function any more.
*/
public static function get_field() {
throw new coding_exception('behat_field_manager::get_field() can not be used any more, ' .
'function behat_field_manager::get_form_field() instead');
}
/**
* @deprecated since Moodle 2.6 MDL-39634 - please do not use this function any more.
*/
protected static function get_node_type() {
throw new coding_exception('behat_field_manager::get_node_type() can not be used any more, ' .
'function behat_field_manager::get_field_node_type() instead');
}
}

View File

@ -135,22 +135,6 @@ class behat_config_manager {
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
public static function get_features_with_tags() {
throw new coding_exception('get_features_with_tags() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
public static function get_components_steps_definitions() {
throw new coding_exception('get_components_steps_definitions() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* Returns the behat config file path used by the steps definition list
*
@ -305,61 +289,4 @@ class behat_config_manager {
}
return true;
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected static function get_config_file_contents() {
throw new coding_exception('get_config_file_contents() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected static function merge_behat_config() {
throw new coding_exception('merge_behat_config() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected static function get_behat_profile() {
throw new coding_exception('get_behat_profile() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected static function profile_guided_allocate() {
throw new coding_exception('profile_guided_allocate() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected static function merge_config() {
throw new coding_exception('merge_config() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected final static function clean_path() {
throw new coding_exception('clean_path() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
/**
* @deprecated since 3.2 - please use behat_config_util.php
*/
protected final static function get_behat_tests_path() {
throw new coding_exception('get_behat_tests_path() can not be used anymore. ' .
'Please use behat_config_util instead.');
}
}

View File

@ -55,20 +55,6 @@ class behat_context_helper {
*/
protected static $nonexistingcontexts = array();
/**
* Sets the browser session.
*
* @param Environment $environment
* @return void
* @deprecated since 3.2 MDL-55072 - please use behat_context_helper::set_environment()
* @todo MDL-55365 This will be deleted in Moodle 3.6.
*/
public static function set_session(Environment $environment) {
debugging('set_session is deprecated. Please use set_environment instead.', DEBUG_DEVELOPER);
self::set_environment($environment);
}
/**
* Sets behat environment.
*

View File

@ -726,23 +726,6 @@ trait behat_session_trait {
return $node;
}
/**
* Ensures that all the page's editors are loaded.
*
* @deprecated since Moodle 2.7 MDL-44084 - please do not use this function any more.
* @throws ElementNotFoundException
* @throws ExpectationException
* @return void
*/
protected function ensure_editors_are_loaded() {
global $CFG;
if (empty($CFG->behat_usedeprecated)) {
debugging('Function behat_base::ensure_editors_are_loaded() is deprecated. It is no longer required.');
}
return;
}
/**
* Checks if the current scenario, or its feature, has a specified tag.
*