Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 18 19 require_once (__DIR__ . '/../../../lib/behat/behat_deprecated_base.php'); 20 21 use Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException; 22 23 /** 24 * Steps definitions that are now deprecated and will be removed in the next releases. 25 * 26 * This file only contains the steps that previously were in the behat_*.php files in the SAME DIRECTORY. 27 * When deprecating steps from other components or plugins, create a behat_COMPONENT_deprecated.php 28 * file in the same directory where the steps were defined. 29 * 30 * @package core 31 * @category test 32 * @copyright 2013 David MonllaĆ³ 33 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 34 */ 35 class behat_deprecated extends behat_deprecated_base { 36 37 /** 38 * Clicks link with specified id|title|alt|text in the flat navigation drawer. 39 * 40 * @When /^I select "(?P<link_string>(?:[^"]|\\")*)" from flat navigation drawer$/ 41 * @param string $link 42 * @deprecated Since Moodle 4.0 43 */ 44 public function i_select_from_flat_navigation_drawer(string $link) { 45 $this->deprecated_message(['i_select_from_primary_navigation', 'i_select_from_secondary_navigation']); 46 47 $this->execute('behat_navigation::i_open_flat_navigation_drawer'); 48 $this->execute('behat_general::i_click_on_in_the', [$link, 'link', '#nav-drawer', 'css_element']); 49 } 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body