diff --git a/core/modules/simpletest/src/AssertContentTrait.php b/core/modules/simpletest/src/AssertContentTrait.php index eb1a80c..b5d3b4f 100644 --- a/core/modules/simpletest/src/AssertContentTrait.php +++ b/core/modules/simpletest/src/AssertContentTrait.php @@ -527,6 +527,18 @@ protected function assertNoEscaped($raw, $message = '', $group = 'Other') { return $this->assert(strpos($this->getRawContent(), Html::escape($raw)) === FALSE, $message, $group); } + + /** + * Temporary assert. + * @param $raw + * @param $out + * @return mixed + */ + protected function assertNotEscaped($raw, $out) { + $message = 'ESCAPÉ "' . Html::escape($raw) . '" NOT FOUND'; + return $this->assert(strpos($out, Html::escape($raw)) === FALSE, $message, $group = 'Other'); + } + /** * Passes if the page (with HTML stripped) contains the text. * diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index c890beb..4828faa 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -1548,6 +1548,8 @@ protected function drupalGet($path, array $options = array(), array $headers = a $verbose .= '