From ed6ca2d2f1d39b5e97fc596cf001d9b374b873b9 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Sun, 14 Apr 2013 10:58:20 +0800 Subject: [PATCH] MDL-38949 behat: Form field for selectyesno Silly extension of behat_form_select. --- lib/behat/form_field/behat_form_selectyesno.php | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/behat/form_field/behat_form_selectyesno.php diff --git a/lib/behat/form_field/behat_form_selectyesno.php b/lib/behat/form_field/behat_form_selectyesno.php new file mode 100644 index 00000000000..3759a17a21e --- /dev/null +++ b/lib/behat/form_field/behat_form_selectyesno.php @@ -0,0 +1,41 @@ +. + +/** + * Silly behat_form_select extension. + * + * @package core_form + * @category test + * @copyright 2013 David MonllaĆ³ + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. + +require_once(__DIR__ . '/behat_form_select.php'); + +/** + * Allows interaction with selectyesno form fields. + * + * Plain behat_form_select extension as it is the same + * kind of field. + * + * @package core_form + * @category test + * @copyright 2013 David MonllaĆ³ + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class behat_form_selectyesno extends behat_form_select {} -- 2.11.4.GIT