Commit 32ea6a30 authored by catch's avatar catch

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

parent cdf25d79
......@@ -2903,7 +2903,7 @@ protected function assertTextHelper($text, $message = '', $group, $not_exists) {
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);
}
/**
......
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