You are here

public function ImageStyleWarmerDrushTest::testDrushWarmUpMessages in Image Style Warmer 8

Tests the Scheduler Drush messages.

File

tests/src/Functional/ImageStyleWarmerDrushTest.php, line 19

Class

ImageStyleWarmerDrushTest
Tests the Drush commands provided by Image Style Warmer.

Namespace

Drupal\Tests\image_style_warmer\Functional

Code

public function testDrushWarmUpMessages() {

  // Run the plain command using the full image-style-warmer:warm-up command
  // name, and check that all of the output messages are shown.
  $this
    ->drush('image-style-warmer:warm-up');
  $messages = $this
    ->getErrorOutput();
  $this
    ->assertStringContainsString('No files found', $messages, 'No files found message not found', TRUE);
}