diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php index f2b28556d325498bc51adff412027f448cdde329..a6cb5b5e0ad399b0ba5c14b87178a5d2a55ee3f1 100644 --- a/core/tests/Drupal/Tests/WebAssert.php +++ b/core/tests/Drupal/Tests/WebAssert.php @@ -320,7 +320,7 @@ public function buildXPathQuery($xpath, array $args = array()) { // Replace placeholders. foreach ($args as $placeholder => $value) { if (is_object($value)) { - throw new \InvalidArgumentException('Just pass in scalar values.'); + throw new \InvalidArgumentException('Just pass in scalar values for $args and remove all t() calls from your test.'); } // XPath 1.0 doesn't support a way to escape single or double quotes in a // string literal. We split double quotes out of the string, and encode