function RowCountExceptionTest::testExceptionMessage

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php \Drupal\Tests\Core\Database\RowCountExceptionTest::testExceptionMessage()
  2. 10 core/tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php \Drupal\Tests\Core\Database\RowCountExceptionTest::testExceptionMessage()

@covers ::__construct @dataProvider providerTestExceptionMessage

File

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

Class

RowCountExceptionTest
@coversDefaultClass \Drupal\Core\Database\RowCountException

Namespace

Drupal\Tests\Core\Database

Code

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.