function RowCountExceptionTest::testExceptionMessage
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php \Drupal\Tests\Core\Database\RowCountExceptionTest::testExceptionMessage()
- 10 core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php \Drupal\Tests\Core\Database\RowCountExceptionTest::testExceptionMessage()
- 9 core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php \Drupal\Tests\Core\Database\RowCountExceptionTest::testExceptionMessage()
Tests exception message.
@legacy-covers ::__construct
Attributes
#[DataProvider('providerTestExceptionMessage')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ RowCountExceptionTest.php, line 43
Class
Namespace
Drupal\Tests\Core\DatabaseCode
public function testExceptionMessage($expected, $message) : void {
$e = new RowCountException($message);
$this->assertSame($expected, $e->getMessage());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.