You are here

public function RowCountExceptionTest::testExceptionMessage in Drupal 10

@covers ::__construct @dataProvider providerTestExceptionMessage()

File

core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php, line 36

Class

RowCountExceptionTest
@coversDefaultClass \Drupal\Core\Database\RowCountException

Namespace

Drupal\Tests\Core\Database

Code

public function testExceptionMessage($expected, $message) {
  $e = new RowCountException($message);
  $this
    ->assertSame($expected, $e
    ->getMessage());
}