Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"

The following functions in the Drupal\simpletest\WebTestBase are deprecated and should be removed:

  /**
   * 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();
  }
CommentFileSizeAuthor
remove_usage_get_set_raw_content.patch51.74 KBJeroenT
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JeroenT’s picture

Title: Remove deprecated functions of WebTestBase.php » Remove usage of deprecated functions of WebTestBase
JeroenT’s picture

Issue summary: View changes
daffie’s picture

Status: Needs review » Reviewed & tested by the community

It all looks good to me.
All the function calls of the deprecated functions are replaced.
After this lands can the deprecated function be deleted.
It is for me RTBC.
Good work @JeroenT.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

The beta evaluation is in the meta. Committed 2f1345a and pushed to 8.0.x. Thanks!

  • alexpott committed 2f1345a on 8.0.x
    Issue #2421699 by JeroenT: Remove usage of deprecated functions of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.