Skip to content
Snippets Groups Projects
Commit 32ea6a30 authored by catch's avatar catch
Browse files

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

parent cdf25d79
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment