summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2017-01-17 14:46:46 +0000
committerAlex Pott2017-01-17 14:46:46 +0000
commit16ddd3876908cbae242a215bfcbb8ff9145d3a70 (patch)
tree8a1512d408a3352786b809516db838873f72882b
parent3bd9f365cf530b91d354baaf2895b6456be55d77 (diff)
Issue #2795543 by cebasqueira, GoZ: Document that only plain string values are allowed in \Drupal\Tests\WebAssert::buildXPathQuery
-rw-r--r--core/tests/Drupal/Tests/WebAssert.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php
index f2b2855..a6cb5b5 100644
--- a/core/tests/Drupal/Tests/WebAssert.php
+++ b/core/tests/Drupal/Tests/WebAssert.php
@@ -320,7 +320,7 @@ class WebAssert extends MinkWebAssert {
// 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