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();
  }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JeroenT’s picture

Status: Postponed » Needs review
daffie’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Deprecated function removal is explicitly allowed during beta.

Committed and pushed to 8.0.x. Thanks!

  • webchick committed fdbfed3 on 8.0.x
    Issue #2421713 by JeroenT: Remove deprecated functions in WebTestBase....
alexpott’s picture

We should get a CR or find the CR that announced their deprecation.

JeroenT’s picture

These 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?

Status: Fixed » Closed (fixed)

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

TR’s picture

Issue tags: +Needs change record

This 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.