You are here

public function CliCommandsTest::testEnableSiteAlertValidation in Site Alert 8

Checks that invalid combinations of parameters throw an exception.

@covers ::enable

File

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

Class

CliCommandsTest
Tests for the site alert CLI Commands service.

Namespace

Drupal\Tests\site_alert\Kernel

Code

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