diff core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php	Mon Apr 23 09:46:53 2018 +0100
@@ -55,4 +55,56 @@
     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);
+  }
+
 }