You are here

protected function SiteAlertTestTrait::assertInactiveAlertCount in Site Alert 8

Checks that the database contains the expected number of inactive alerts.

Parameters

int $expected_count: The expected number of inactive alerts.

1 call to SiteAlertTestTrait::assertInactiveAlertCount()
CliCommandsTest::testEnableSiteAlertByLabel in tests/src/Kernel/CliCommandsTest.php
Checks that a site alert can be enabled by passing the label.

File

tests/src/Traits/SiteAlertTestTrait.php, line 101

Class

SiteAlertTestTrait
Helper methods for testing the Site Alert module.

Namespace

Drupal\Tests\site_alert\Traits

Code

protected function assertInactiveAlertCount(int $expected_count) : void {
  $this
    ->assertEquals($expected_count, $this
    ->getAlertCount(FALSE));
}