MDL-56335 behat: prefixed_tablenode_transformations final deprecation

This commit is contained in:
Mihail Geshoski
2018-08-06 09:27:08 +08:00
parent 6e020b161a
commit f2cdf99382
2 changed files with 5 additions and 13 deletions
+4 -13
View File
@@ -45,20 +45,11 @@ use Behat\Gherkin\Node\TableNode;
class behat_transformations extends behat_base {
/**
* Transformations for TableNode arguments.
*
* Transformations applicable to TableNode arguments should also
* be applied, adding them in a different method for Behat API restrictions.
*
* @deprecated since Moodle 3.2 MDL-56335 - please do not use this function any more.
* @param TableNode $tablenode
* @return TableNode The transformed table
* @deprecated since Moodle 3.2
*/
public function prefixed_tablenode_transformations(TableNode $tablenode) {
debugging('prefixed_tablenode_transformations() is deprecated. Please use tablenode_transformations() instead.',
DEBUG_DEVELOPER);
return $this->tablenode_transformations($tablenode);
public function prefixed_tablenode_transformations() {
throw new coding_exception('prefixed_tablenode_transformations() can not be used anymore. ' .
'Please use tablenode_transformations() instead.');
}
/**
+1
View File
@@ -25,6 +25,7 @@ information provided here is intended especially for developers.
- site_scale_used()
- clam_message_admins()
- get_clam_error_code()
- prefixed_tablenode_transformations()
* The following classes have been finally deprecated and can not be used any more:
- core_media_renderer
- core_media