You are here

public function ImageStyleWarmerGeneralTest::testImageStyleWarmerUploadTemporaryImageFile in Image Style Warmer 8

Test Image Style Warmer initial warming for temporary file.

File

tests/src/Functional/ImageStyleWarmerGeneralTest.php, line 46

Class

ImageStyleWarmerGeneralTest
Functional tests to check general function of Image Style Warmer.

Namespace

Drupal\Tests\image_style_warmer\Functional

Code

public function testImageStyleWarmerUploadTemporaryImageFile() {
  $this
    ->prepareImageStyleWarmerTests();
  $this
    ->assertFalse(file_exists($this->testInitialStyle
    ->buildUri($this->testFile
    ->getFileUri())), 'Generated file does not exist.');
  $this
    ->assertFalse(file_exists($this->testQueueStyle
    ->buildUri($this->testFile
    ->getFileUri())), 'Generated file does not exist.');
}