diff -u b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php --- b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php +++ b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php @@ -64,7 +64,7 @@ $this->assertSession()->statusCodeEquals(200); $this->assertEscaped('Test feed title '); - $this->assertNoRaw('Test feed title '); + $this->assertSession()->responseNotContains('Test feed title '); // Ensure the feed icon title is escaped. $this->assertStringContainsString('class="feed-icon"> Subscribe to Test feed title <script>alert(123);</script> feed', str_replace(["\n", "\r"], '', $this->getSession()->getPage()->getContent())); diff -u b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php --- b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php +++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @@ -87,18 +87,18 @@ $this->drupalGet(Url::fromRoute('')); $this->assertSessionCookieExists(FALSE); $this->assertBigPipeNoJsCookieExists(FALSE); - $this->assertNoRaw(''); - $this->assertNoRaw($no_js_to_js_markup); + $this->assertSession()->responseNotContains($no_js_to_js_markup); $this->assertBigPipeNoJsMetaRefreshRedirect(); $this->assertBigPipeNoJsCookieExists(TRUE); - $this->assertNoRaw(''); - $this->assertNoRaw($no_js_to_js_markup); + $this->assertSession()->responseNotContains($no_js_to_js_markup); $this->assertBigPipeNoJsMetaRefreshRedirect(); $this->assertBigPipeNoJsCookieExists(TRUE); - $this->assertNoRaw('