X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FWebDriverWebAssert.php;h=e621c1a0725cf82c9c697d1f28ce37cf9342b005;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=16b1281d4d8be0062bae40374e1683ad4043a07b;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php b/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php index 16b1281d4..e621c1a07 100644 --- a/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php +++ b/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php @@ -55,4 +55,56 @@ class WebDriverWebAssert extends JSWebAssert { parent::responseHeaderNotEquals($name, $value); } + /** + * The use of responseHeaderContains() is not available. + * + * @param string $name + * The name of the header. + * @param string $value + * The value to check the header against. + */ + public function responseHeaderContains($name, $value) { + @trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.'); + parent::responseHeaderContains($name, $value); + } + + /** + * The use of responseHeaderNotContains() is not available. + * + * @param string $name + * The name of the header. + * @param string $value + * The value to check the header against. + */ + public function responseHeaderNotContains($name, $value) { + @trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.'); + parent::responseHeaderNotContains($name, $value); + } + + /** + * The use of responseHeaderMatches() is not available. + * + * @param string $name + * The name of the header. + * @param string $regex + * The value to check the header against. + */ + 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); + } + + /** + * The use of responseHeaderNotMatches() is not available. + * + * @param string $name + * The name of the header. + * @param string $regex + * The value to check the header against. + */ + 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); + } + }