function WebDriverWebAssert::responseHeaderNotMatches

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert::responseHeaderNotMatches()
  2. 8.9.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert::responseHeaderNotMatches()
  3. 10 core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert::responseHeaderNotMatches()

The use of responseHeaderNotMatches() is not available.

Parameters

string $name: The name of the header.

string $regex: The value to check the header against.

File

core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php, line 107

Class

WebDriverWebAssert
Defines a JSWebAssert with no support for status code and header assertions.

Namespace

Drupal\FunctionalJavascriptTests

Code

public function responseHeaderNotMatches($name, $regex) {
    @trigger_error('Support for responseHeaderNotMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
    parent::responseHeaderNotMatches($name, $regex);
}

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