public function WebDriverWebAssert::responseHeaderMatches in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert::responseHeaderMatches()
- 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert::responseHeaderMatches()
The use of responseHeaderMatches() 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 92
Class
- WebDriverWebAssert
- Defines a JSWebAssert with no support for status code and header assertions.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function responseHeaderMatches($name, $regex) {
@trigger_error('Support for responseHeaderMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderMatches($name, $regex);
}