diff -u b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php --- b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -3102,10 +3102,11 @@ * @param $xpath * XPath used to find the field. * @param $value - * (optional) Value of the field to assert. Asserts that the provided value - * doesn't match, or that the field itself doesn't exist. Providing a NULL - * value or not providing a value at all, asserts that the field doesn't - * exist. + * (optional) A field value to check: the assertion will pass + * either if the field doesn't exist, or if it exists but + * the field's value doesn't match the provided value. + * You may pass in NULL (default) to skip the value check; + * in this case, the assertion will only pass if the field doesn't exist. * @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 @@ -3184,7 +3185,7 @@ * Value of the field to assert. Asserts that the provided value doesn't * match, or that the field itself doesn't exist. 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 ''. + * this asserts that the field value is not ''. * @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