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\KernelCode
public function testDisableSiteAlertValidation() : void {
$this
->expectException(\InvalidArgumentException::class);
$this->cliCommands
->disable('some-non-existing-site-alert');
}