Issue #2282453 by Xano: Fixed strpos() does not work with TranslationWrapper.

8.0.x
Nathaniel Catchpole 2014-06-11 11:43:48 +01:00
parent cdf25d79df
commit 32ea6a30b8
1 changed files with 1 additions and 1 deletions

View File

@ -2903,7 +2903,7 @@ abstract class WebTestBase extends TestBase {
if (!$message) {
$message = !$not_exists ? String::format('"@text" found', array('@text' => $text)) : String::format('"@text" not found', array('@text' => $text));
}
return $this->assert($not_exists == (strpos($this->plainTextContent, $text) === FALSE), $message, $group);
return $this->assert($not_exists == (strpos($this->plainTextContent, (string) $text) === FALSE), $message, $group);
}
/**