diff --git a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php index 4133d42..1757a60 100644 --- a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +++ b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php @@ -725,7 +725,7 @@ protected function buildXPathQuery($xpath, array $args = []) { * Use $this->getSession()->getPage()->getContent() instead. */ protected function getRawContent() { - @trigger_error('AssertLegacyTrait::getRawContent() is scheduled for removal in Drupal 9.0.0. Use $this->assertSession()->buildXPathQuery() instead.', E_USER_DEPRECATED); + @trigger_error('AssertLegacyTrait::getRawContent() is scheduled for removal in Drupal 9.0.0. Use $this->getSession()->getPage()->getContent() instead.', E_USER_DEPRECATED); return $this->getSession()->getPage()->getContent(); }