function DrupalTestCaseTrait::expectExceptionMessageIsOrContains
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/DrupalTestCaseTrait.php \Drupal\Tests\DrupalTestCaseTrait::expectExceptionMessageIsOrContains()
Expects an exception message containing a specified string.
Forward compatibility for PHPUnit 13.
Parameters
string $message: The expected exception message.
File
-
core/
tests/ Drupal/ Tests/ DrupalTestCaseTrait.php, line 112
Class
- DrupalTestCaseTrait
- Provides methods common across all Drupal abstract base test classes.
Namespace
Drupal\TestsCode
protected function expectExceptionMessageIsOrContains(string $message) : void {
$this->expectExceptionMessage($message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.