From da36d32ef79edba957e564f6304fbb553c084b31 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 15 Jan 2015 12:37:16 +0000 Subject: [PATCH] MDL-48860 behat: fix matching select human-readable value This is a selective back-port of a small part of MDL-43835. --- lib/behat/form_field/behat_form_select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/behat/form_field/behat_form_select.php b/lib/behat/form_field/behat_form_select.php index ac63c01b337..19e0cf02dad 100644 --- a/lib/behat/form_field/behat_form_select.php +++ b/lib/behat/form_field/behat_form_select.php @@ -278,7 +278,7 @@ class behat_form_select extends behat_form_field { */ protected function get_selected_options($returntexts = true) { - $method = 'getText'; + $method = 'getHtml'; if ($returntexts === false) { $method = 'getValue'; }