function RowCountExceptionTest::testExceptionMessage

Same name and namespace in other branches
  1. 11.x 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()
  3. 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

RowCountExceptionTest
Tests 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.