protected function AssertLegacyTrait::assertNoEscaped in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertNoEscaped()
Passes if the raw text is not found escaped on the loaded page.
Raw text refers to the raw HTML that the page generated.
Parameters
string $raw: Raw (HTML) string to look for.
Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->assertNoEscaped() instead.
13 calls to AssertLegacyTrait::assertNoEscaped()
- BlockXssTest::doViewTest in core/
modules/ block/ tests/ src/ Functional/ BlockXssTest.php - Tests XSS coming from View block labels.
- BlockXssTest::testNoUnexpectedEscaping in core/
modules/ block/ tests/ src/ Functional/ BlockXssTest.php - Tests that nothing is escaped other than the blocks explicitly tested.
- CommentPreviewTest::testCommentPreview in core/
modules/ comment/ tests/ src/ Functional/ CommentPreviewTest.php - Tests comment preview.
- FilterAdminTest::testDisabledFormat in core/
modules/ filter/ tests/ src/ Functional/ FilterAdminTest.php - Tests whether a field using a disabled format is rendered.
- ForumTest::testForumWithNewPost in core/
modules/ forum/ tests/ src/ Functional/ ForumTest.php - Tests a forum with a new post displays properly.
File
- core/
tests/ Drupal/ FunctionalTests/ AssertLegacyTrait.php, line 674
Class
- AssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\FunctionalTestsCode
protected function assertNoEscaped($raw) {
$this
->assertSession()
->assertNoEscaped($raw);
}