You are here

public function ImageStyleWarmerGeneralTest::testImageStyleWarmerUploadPermanentImageFile in Image Style Warmer 8

Test Image Style Warmer initial warming for permanent file.

File

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

Class

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

Namespace

Drupal\Tests\image_style_warmer\Functional

Code

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