public function DrushCommandsTest::testDisableInput in Site Alert 8
Tests site-alert:disable with invalid input.
File
- tests/
src/ Functional/ DrushCommandsTest.php, line 160
Class
- DrushCommandsTest
- Execute drush commands on site_alert.
Namespace
Drupal\Tests\site_alert\FunctionalCode
public function testDisableInput() : void {
$this
->drush('site-alert:disable', [
'automated-test-alert',
], [], NULL, NULL, 1);
$this
->assertErrorOutputEquals("[error] No active site alerts found with the label 'automated-test-alert'.");
$this
->drush('site-alert:disable', [], [], NULL, NULL, 0);
$this
->assertErrorOutputEquals('[notice] There were no site alerts to disable.');
}