protected function MessageDigestTest::assertRowCount in Message Digest 8
Checks that the message_digest table contains the expected number of rows.
Parameters
int $expected_count: The expected number of rows.
Throws
\Exception Thrown when the database connection is not available on the container.
1 call to MessageDigestTest::assertRowCount()
- MessageDigestTest::testOrphanedEntityReferences in tests/
src/ Kernel/ MessageDigestTest.php - Tests that the message_digest table is cleaned up when deleting entities.
File
- tests/
src/ Kernel/ MessageDigestTest.php, line 597
Class
- MessageDigestTest
- Kernel tests for Message Digest.
Namespace
Drupal\Tests\message_digest\KernelCode
protected function assertRowCount($expected_count) {
$this
->assertEquals($expected_count, count($this
->getAllMessageDigests()));
}