Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / WebDriverWebAssert.php
index 16b1281d4d8be0062bae40374e1683ad4043a07b..e621c1a0725cf82c9c697d1f28ce37cf9342b005 100644 (file)
@@ -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);
+  }
+
 }