function RowCountExceptionTest::testExceptionMessageNull

Same name and namespace 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 <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21RowCountException.php/class/RowCountException/9" title="Exception thrown if a SELECT query trying to execute rowCount() on result." class="local">\Drupal\Core\Database\RowCountException</a>

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.