function WebAssert::responseHeaderEquals

Same name in other branches
  1. 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::responseHeaderEquals()
  2. 10 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::responseHeaderEquals()
1 call to WebAssert::responseHeaderEquals()
WebDriverWebAssert::responseHeaderEquals in core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
The use of responseHeaderEquals() is not available.
1 method overrides WebAssert::responseHeaderEquals()
WebDriverWebAssert::responseHeaderEquals in core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
The use of responseHeaderEquals() is not available.

File

core/tests/Drupal/Tests/WebAssert.php, line 952

Class

WebAssert
Defines a class with methods for asserting presence of elements during tests.

Namespace

Drupal\Tests

Code

public function responseHeaderEquals($name, $value) {
    if (!is_string($name)) {
        // @todo Trigger deprecation in
        //   https://www.drupal.org/project/drupal/issues/3421105.
        $name = (string) $name;
    }
    if ($value === NULL) {
        // @todo Trigger deprecation in
        //   https://www.drupal.org/project/drupal/issues/3421105.
        $this->responseHeaderDoesNotExist($name);
        return;
    }
    if (!is_string($value)) {
        $value = (string) $value;
    }
    parent::responseHeaderEquals($name, $value);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.