function RowCountExceptionTest::testExceptionMessageNull

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

@covers ::__construct @group legacy

File

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

Class

RowCountExceptionTest
@coversDefaultClass \Drupal\Core\Database\RowCountException

Namespace

Drupal\Tests\Core\Database

Code

public function testExceptionMessageNull() {
    $e = new RowCountException(NULL);
    $this->assertSame(static::DEFAULT_EXCEPTION_MESSAGE, $e->getMessage());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.