public function WebAssert::responseNotContains in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::responseNotContains()
- 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::responseNotContains()
Checks that page HTML (response content) does not contains text.
Parameters
string|object $text: Text value. Any non-string value will be cast to string.
Throws
\Behat\Mink\Exception\ExpectationException
File
- core/
tests/ Drupal/ Tests/ WebAssert.php, line 517
Class
- WebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\TestsCode
public function responseNotContains($text) {
assert(func_num_args() === 1);
parent::responseNotContains((string) $text);
}