function AssertLegacyTrait::getRawContent
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::getRawContent()
Gets the current raw content.
Deprecated
in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead.
See also
https://www.drupal.org/node/3129738
1 call to AssertLegacyTrait::getRawContent()
- BrowserTestBaseTest::testGetRawContent in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - Tests legacy getRawContent().
File
-
core/
tests/ Drupal/ FunctionalTests/ AssertLegacyTrait.php, line 968
Class
- AssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\FunctionalTestsCode
protected function getRawContent() {
@trigger_error('AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
return $this->getSession()
->getPage()
->getContent();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.