public function ImageStyleWarmerCustomModuleTest::testImageStyleWarmerDoWarmUpCustomModule in Image Style Warmer 8
Test Image Style Warmer warming like a custom module.
File
- tests/
src/ Functional/ ImageStyleWarmerCustomModuleTest.php, line 52
Class
- ImageStyleWarmerCustomModuleTest
- Functional tests to check Image Style Warmer usage like a custom module.
Namespace
Drupal\Tests\image_style_warmer\FunctionalCode
public function testImageStyleWarmerDoWarmUpCustomModule() {
$this
->prepareImageStyleWarmerCustomModuleTests();
$this
->assertFalse(file_exists($this->testInitialStyle
->buildUri($this->testFile
->getFileUri())), 'Generated file does not exist.');
$this->testService
->doWarmUp($this->testFile, [
$this->testInitialStyle
->id(),
]);
$this
->assertTrue(file_exists($this->testInitialStyle
->buildUri($this->testFile
->getFileUri())), 'Generated file does exist.');
}