function ImageStylesPathAndUrlTest::testImageStylePrivateWithConversion

Same name in other branches
  1. 10 core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php \Drupal\Tests\image\Functional\ImageStylesPathAndUrlTest::testImageStylePrivateWithConversion()

Test an image style URL with a private file that also gets converted.

File

core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php, line 126

Class

ImageStylesPathAndUrlTest
Tests the functions for generating paths and URLs for image styles.

Namespace

Drupal\Tests\image\Functional

Code

public function testImageStylePrivateWithConversion() : void {
    // Add the "convert" image style effect to our style.
    $this->style
        ->addImageEffect([
        'uuid' => '',
        'id' => 'image_convert',
        'weight' => 1,
        'data' => [
            'extension' => 'jpeg',
        ],
    ]);
    $this->doImageStyleUrlAndPathTests('private');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.