Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow up from: #2421699: Remove usage of deprecated functions of WebTestBase.
Remove the following deprecated functions:
/**
* Sets the raw HTML content.
*
* @deprecated 8.x
* Use setRawContent().
*/
protected function drupalSetContent($content) {
$this->setRawContent($content);
}
/**
* Sets the value of drupalSettings for the currently-loaded page.
*
* @deprecated 8.x
* Use setDrupalSettings().
*/
protected function drupalSetSettings($settings) {
$this->setDrupalSettings($settings);
}
/**
* Gets the current raw HTML of requested page.
*
* @deprecated 8.x
* Use getRawContent().
*/
protected function drupalGetContent() {
return $this->getRawContent();
}
/**
* Gets the value of drupalSettings for the currently-loaded page.
*
* @deprecated 8.x
* Use getDrupalSettings().
*/
protected function drupalGetSettings() {
return $this->getDrupalSettings();
}
Comment | File | Size | Author |
---|---|---|---|
remove_deprecated_functions_webtestbase.patch | 1.5 KB | JeroenT | |
Comments
Comment #1
JeroenTComment #2
daffie CreditAttribution: daffie commentedLooks good to me.
Comment #3
webchickDeprecated function removal is explicitly allowed during beta.
Committed and pushed to 8.0.x. Thanks!
Comment #5
alexpottWe should get a CR or find the CR that announced their deprecation.
Comment #6
JeroenTThese functions were marked as deprecated in: #2257519: Move content assertion methods into a trait, so DUTB can consume it, too.
And this is the referenced change record: New KernelTestBase for API-level integration tests. Should we add them there?
Comment #8
TR CreditAttribution: TR commentedThis needs to be documented in a change record. Now that the deprecated functions are removed, there's absolutely no documentation left about what they're replaced by.