diff --git a/core/modules/search/src/Tests/SearchCommentTest.php b/core/modules/search/src/Tests/SearchCommentTest.php index 09ba856..f89dec3 100644 --- a/core/modules/search/src/Tests/SearchCommentTest.php +++ b/core/modules/search/src/Tests/SearchCommentTest.php @@ -194,8 +194,7 @@ function testSearchResultsComment() { // Verify contents inside script tag in evil comment body is stripped from // search results. $this->drupalPostForm('search/node', $edit, t('Search')); - // Search for content inside script tag should return no result. - $this->assertText('Your search yielded no results.'); + $this->assertNoRaw('