From 3f934e4abd47a852f20fef3319043ba2f59e9aa9 Mon Sep 17 00:00:00 2001 From: Peter Dias Date: Mon, 16 Nov 2020 21:23:44 +0800 Subject: [PATCH] MDL-65215 core: Deprecate i_dock_block --- lib/tests/behat/behat_deprecated.php | 20 -------------------- lib/upgrade.txt | 1 + 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/lib/tests/behat/behat_deprecated.php b/lib/tests/behat/behat_deprecated.php index e7f23efa9c2..f8c3faec41f 100644 --- a/lib/tests/behat/behat_deprecated.php +++ b/lib/tests/behat/behat_deprecated.php @@ -41,26 +41,6 @@ use Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException, */ class behat_deprecated extends behat_base { - /** - * Docks a block. Editing mode should be previously enabled. - * @throws ExpectationException - * @param string $blockname - * @return void - * @deprecated since Moodle 3.7 MDL-64506 - please do not use this definition step any more. - * @todo MDL-65215 This will be deleted in Moodle 3.11. - */ - public function i_dock_block($blockname) { - - $message = "Block docking is no longer used as of MDL-64506. Please update your tests."; - $this->deprecated_message($message); - - // Looking for both title and alt. - $xpath = "//input[@type='image'][@title='" . get_string('dockblock', 'block', $blockname) . "' or @alt='" . get_string('addtodock', 'block') . "']"; - $this->execute('behat_general::i_click_on_in_the', - array($xpath, "xpath_element", $this->escape($blockname), "block") - ); - } - /** * Throws an exception if $CFG->behat_usedeprecated is not allowed. * diff --git a/lib/upgrade.txt b/lib/upgrade.txt index d7d768c34fa..ab7b3a57d9a 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -4,6 +4,7 @@ information provided here is intended especially for developers. === 3.11 === * New optional parameter $extracontent for print_collapsible_region_start(). This allows developers to add interactive HTML elements (e.g. a help icon) after the collapsible region's toggle link. +* Final deprecation i_dock_block() in behat_deprecated.php === 3.10 === * PHPUnit has been upgraded to 8.5. That comes with a few changes: