Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39634 behat: Adding debugging() messages to deprecated methods

  • Loading branch information...
commit 346765035a1a861f41766d19a05f60995447b339 1 parent 944fd1c
@dmonllao dmonllao authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/behat/behat_field_manager.php
View
6 lib/behat/behat_field_manager.php
@@ -159,6 +159,9 @@ protected static function get_field_node_type(NodeElement $fieldnode, Session $s
* @return behat_form_field
*/
public static function get_field(NodeElement $fieldnode, $locator, Session $session) {
+ debugging('Function behat_field_manager::get_field() is deprecated, ' .
+ 'please use function behat_field_manager::get_form_field() instead', DEBUG_DEVELOPER);
+
return self::get_form_field($fieldnode, $session);
}
@@ -176,6 +179,9 @@ public static function get_field(NodeElement $fieldnode, $locator, Session $sess
* @return mixed A NodeElement if we continue looking for the element type and String or false when we are done.
*/
protected static function get_node_type(NodeElement $fieldnode, $locator, Session $session) {
+ debugging('Function behat_field_manager::get_node_type() is deprecated, ' .
+ 'please use function behat_field_manager::get_field_node_type() instead', DEBUG_DEVELOPER);
+
return self::get_field_node_type($fieldnode, $session);
}
Please sign in to comment.
Something went wrong with that request. Please try again.