function WebAssert::pageTextContains

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::pageTextContains()
  2. 10 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::pageTextContains()

File

core/tests/Drupal/Tests/WebAssert.php, line 969

Class

WebAssert
Defines a class with methods for asserting presence of elements during tests.

Namespace

Drupal\Tests

Code

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.