function WebAssert::pageTextContains
File
- 
              core/
tests/ Drupal/ Tests/ WebAssert.php, line 973  
Class
- WebAssert
 - Defines a class with methods for asserting presence of elements during tests.
 
Namespace
Drupal\TestsCode
public function pageTextContains($text) {
  if (!is_string($text)) {
    // @todo Trigger deprecation in
    //   https://www.drupal.org/project/drupal/issues/3421105.
    $text = (string) $text;
  }
  parent::pageTextContains($text);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.