You are here

public function CliCommandsTest::testDisableSiteAlertValidation in Site Alert 8

Checks that invalid combinations of parameters throw an exception.

@covers ::disable

File

tests/src/Kernel/CliCommandsTest.php, line 174

Class

CliCommandsTest
Tests for the site alert CLI Commands service.

Namespace

Drupal\Tests\site_alert\Kernel

Code

public function testDisableSiteAlertValidation() : void {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this->cliCommands
    ->disable('some-non-existing-site-alert');
}