mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-57282 behat: Deprecate I go to X in the course gradebook
This commit is contained in:
parent
c4cf1c60f5
commit
b7c822a546
@ -301,16 +301,4 @@ class behat_grade extends behat_base {
|
||||
|
||||
$this->select_in_gradebook_tabs($gradepath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigates to the course gradebook and selects a specified item from the grade navigation tabs.
|
||||
*
|
||||
* @todo MDL-57282 deprecate in Moodle 3.3
|
||||
*
|
||||
* @Given /^I go to "(?P<gradepath_string>(?:[^"]|\\")*)" in the course gradebook$/
|
||||
* @param string $gradepath
|
||||
*/
|
||||
public function i_go_to_in_the_course_gradebook($gradepath) {
|
||||
$this->execute('behat_grade::i_navigate_to_in_the_course_gradebook', $gradepath);
|
||||
}
|
||||
}
|
||||
|
@ -297,6 +297,19 @@ class behat_deprecated extends behat_base {
|
||||
$this->deprecated_message($alternative, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigates to the course gradebook and selects a specified item from the grade navigation tabs.
|
||||
* @Given /^I go to "(?P<gradepath_string>(?:[^"]|\\")*)" in the course gradebook$/
|
||||
* @param string $gradepath
|
||||
* @deprecated since Moodle 3.3 MDL-57282 - please do not use this step any more.
|
||||
*/
|
||||
public function i_go_to_in_the_course_gradebook($gradepath) {
|
||||
$alternative = 'I navigate to "' . $this->escape($gradepath) . '" in the course gradebook';
|
||||
$this->deprecated_message($alternative);
|
||||
|
||||
$this->execute('behat_grade::i_navigate_to_in_the_course_gradebook', $gradepath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an exception if $CFG->behat_usedeprecated is not allowed.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user