function AssertLegacyTrait::assertNoEscaped
Same name in other branches
- 8.9.x 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.
See also
https://www.drupal.org/node/3129738
1 call to AssertLegacyTrait::assertNoEscaped()
- BrowserTestBaseTest::testLegacyEscapingAssertions in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - Tests deprecation of legacy assertEscaped() and assertNoEscaped().
File
-
core/
tests/ Drupal/ FunctionalTests/ AssertLegacyTrait.php, line 810
Class
- AssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\FunctionalTestsCode
protected function assertNoEscaped($raw) {
@trigger_error('AssertLegacyTrait::assertNoEscaped() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->assertNoEscaped() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
$this->assertSession()
->assertNoEscaped($raw);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.