You are here

public function DrushCommandsTest::testDeleteNone in Site Alert 8

Tests site-alert:delete non-existent alert.

File

tests/src/Functional/DrushCommandsTest.php, line 65

Class

DrushCommandsTest
Execute drush commands on site_alert.

Namespace

Drupal\Tests\site_alert\Functional

Code

public function testDeleteNone() : void {
  $this
    ->drush('site-alert:delete', [
    'crazy8342111hash65923label',
  ]);
  $this
    ->assertErrorOutputEquals("[notice] Found no site alerts with label 'crazy8342111hash65923label' to delete.");
}