MDL-72873 core_grades: Deprecate select_in_gradebook_tabs()

Deprecates the function select_in_gradebook_tabs() in behat_grade.php.
After the tertiary navigation changes in gradebook this function became
obsolete and is now replaced by select_in_gradebook_navigation_selector().
This commit is contained in:
Mihail Geshoski 2021-10-28 13:45:03 +08:00
parent ddd40c79f1
commit c744bdd1d4
2 changed files with 6 additions and 0 deletions

View File

@ -279,9 +279,13 @@ class behat_grade extends behat_base {
/**
* Select the tab in the gradebook. We must be on one of the gradebook pages already.
*
* @deprecated since 4.0 - use select_in_gradebook_navigation_selector() instead.
* @param string $gradepath examples: "View > User report", "Letters > View", "Scales"
*/
protected function select_in_gradebook_tabs($gradepath) {
debugging('The function select_in_gradebook_tabs() is deprecated, please use ' .
'select_in_gradebook_navigation_selector() instead.', DEBUG_DEVELOPER);
$gradepath = preg_split('/\s*>\s*/', trim($gradepath));
if (count($gradepath) > 2) {
throw new coding_exception('Grade path is too long (must have no more than two items separated with ">")');

View File

@ -3,6 +3,8 @@ Information provided here is intended especially for developers.
=== 4.0 ===
* The select_in_gradebook_tabs() function in behat_grade.php has been deprecated. Please use the function
select_in_gradebook_navigation_selector() instead.
* The setting $CFG->grade_navmethod setting has been completely removed because it's not required anymore. This setting
was used to set the type of navigation (tabs or dropdown box) used in gradebook which is now replaced with tertiary
navigation.