-
Bug
-
Resolution: Fixed
-
Minor
-
3.1.1
-
MOODLE_31_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
wip-mdl-55329
-
Documentation and behat are fighting each other.
In https://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps
I read
A PyString; is a multiline string, most commonly used to fill out forms when a newline is required. Like steps with tables, steps which require PyStrings will end with ":"
|
Take care to: steps which require PyStrings will end with ":"
but in:
lib/tests/behat/behat_forms.php
I found
/**
|
* Sets the specified value to the field.
|
*
|
* @Given /^I set the field "(?P<field_string>(?:[^"]|\\")*)" to multiline$/
|
* @throws ElementNotFoundException Thrown by behat_base::find
|
* @param string $field
|
* @param PyStringNode $value
|
* @return void
|
*/
|
public function i_set_the_field_to_multiline($field, PyStringNode $value) {
|
$this->set_field_value($field, (string)$value);
|
}
|
with
* @Given /^I set the field "(?P<field_string>(?:[^"]|\\")*)" to multiline$/
|
instead of
* @Given /^I set the field "(?P<field_string>(?:[^"]|\\")*)" to multiline:$/
|
Take care to: :$/
- is parent of
-
MDL-55406 Remove i_set_the_field_to_multiline deprecated in 3.2
- Closed