Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
32ea6a30
Commit
32ea6a30
authored
Jun 11, 2014
by
Nathaniel Catchpole
Browse files
Issue
#2282453
by Xano: Fixed strpos() does not work with TranslationWrapper.
parent
cdf25d79
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/src/WebTestBase.php
View file @
32ea6a30
...
...
@@ -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);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment