Commit 16ddd387 authored by alexpott's avatar alexpott

Issue #2795543 by cebasqueira, GoZ: Document that only plain string values are...

Issue #2795543 by cebasqueira, GoZ: Document that only plain string values are allowed in \Drupal\Tests\WebAssert::buildXPathQuery
parent 3bd9f365
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment