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 /** 18 * Base class of all steps definitions. 19 * 20 * This script is only called from Behat as part of it's integration 21 * in Moodle. 22 * 23 * @package core 24 * @category test 25 * @copyright 2012 David MonllaĆ³ 26 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 27 */ 28 29 // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 30 31 require_once (__DIR__ . '/classes/behat_session_interface.php'); 32 require_once (__DIR__ . '/classes/behat_session_trait.php'); 33 34 /** 35 * Steps definitions base class. 36 * 37 * To extend by the steps definitions of the different Moodle components. 38 * 39 * It can not contain steps definitions to avoid duplicates, only utility 40 * methods shared between steps. 41 * 42 * @method NodeElement find_field(string $locator) Finds a form element 43 * @method NodeElement find_button(string $locator) Finds a form input submit element or a button 44 * @method NodeElement find_link(string $locator) Finds a link on a page 45 * @method NodeElement find_file(string $locator) Finds a forum input file element 46 * 47 * @package core 48 * @category test 49 * @copyright 2012 David MonllaĆ³ 50 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 51 */ 52 class behat_base extends Behat\MinkExtension\Context\RawMinkContext implements behat_session_interface { 53 54 // All of the functionality of behat_base is shared with form fields via the behat_session_trait trait. 55 use behat_session_trait; 56 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body