function ImageStyleDownloadAccessControlTest::prepareEnvironment

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

Overrides FunctionalTestSetupTrait::prepareEnvironment

File

core/modules/image/tests/src/Functional/ImageStyleDownloadAccessControlTest.php, line 47

Class

ImageStyleDownloadAccessControlTest
Tests access control for downloading image styles.

Namespace

Drupal\Tests\image\Functional

Code

protected function prepareEnvironment() : void {
    parent::prepareEnvironment();
    // @see static::testPrivateSchemeWithinPublic()
    $this->privateFilesDirectory = $this->publicFilesDirectory . '/private';
}

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