diff core/tests/Drupal/Tests/WebAssert.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/WebAssert.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/tests/Drupal/Tests/WebAssert.php	Thu May 09 15:33:08 2019 +0100
@@ -418,6 +418,30 @@
   }
 
   /**
+   * Checks that page HTML (response content) contains text.
+   *
+   * @param string|object $text
+   *   Text value. Any non-string value will be cast to string.
+   *
+   * @throws ExpectationException
+   */
+  public function responseContains($text) {
+    parent::responseContains((string) $text);
+  }
+
+  /**
+   * Checks that page HTML (response content) does not contains text.
+   *
+   * @param string|object $text
+   *   Text value. Any non-string value will be cast to string.
+   *
+   * @throws ExpectationException
+   */
+  public function responseNotContains($text) {
+    parent::responseNotContains((string) $text);
+  }
+
+  /**
    * Asserts a condition.
    *
    * The parent method is overridden because it is a private method.