diff -u b/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php --- b/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -3222,15 +3222,13 @@ } /** - * Asserts that a field does not exist in the current page by the given XPath, - * or if it exists but the field's value doesn't match the provided value. + * Asserts that a field doesn't exist or its value doesn't match, by XPath. * * @param $xpath * XPath used to find the field. * @param $value - * (optional) Value of the field to assert. You may pass in NULL (default) - * to skip checking the actual value, while still checking that the field - * doesn't exist. + * (optional) Value for the field, to assert that the field's value on the + * page doesn't match it. * @param $message * (optional) A message to display with the assertion. Do not translate * messages: use format_string() to embed variables in the message text, not @@ -3268,8 +3266,9 @@ * @param $name * Name of field to assert. * @param $value - * Value of the field to assert. You may pass in NULL (default) to skip - * checking the actual value, while still checking that the field exists. + * (optional) Value of the field to assert. You may pass in NULL (default) + * to skip checking the actual value, while still checking that the field + * exists. * @param $message * (optional) A message to display with the assertion. Do not translate * messages: use format_string() to embed variables in the message text, not @@ -3332,9 +3331,10 @@ * @param $id * ID of field to assert. * @param $value - * Value of the field to assert. You may pass in NULL to skip checking the - * actual value, while still checking that the field exists. Note that if no - * value is provided, this asserts that the field value is not ''. + * (optional) Value for the field to assert. You may pass in NULL to skip + * checking the value, while still checking that the field exists. + * However, the default value ('') asserts that the field value is an empty + * string. * @param $message * (optional) A message to display with the assertion. Do not translate * messages: use format_string() to embed variables in the message text, not @@ -3358,9 +3358,10 @@ * @param $id * ID of field to assert. * @param $value - * (optional) Value of the field to assert. Providing a NULL value asserts - * that the field doesn't exist. Note that if no value is provided, this - * asserts that the field value is not ''. + * (optional) Value for the field, to assert that the field's value on the + * page doesn't match it. You may pass in NULL to skip checking the value, + * while still checking that the field doesn't exist. However, the default + * value ('') asserts that the field value is not an empty string. * @param $message * (optional) A message to display with the assertion. Do not translate * messages: use format_string() to embed variables in the message text, not