function ImageStyleCustomStreamWrappersTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()
  2. 10 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()
  3. 11.x core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php, line 46

Class

ImageStyleCustomStreamWrappersTest
Tests derivative generation with source images using stream wrappers.

Namespace

Drupal\Tests\image\Kernel

Code

protected function setUp() {
    parent::setUp();
    $this->fileSystem = $this->container
        ->get('file_system');
    $this->config('system.file')
        ->set('default_scheme', 'public')
        ->save();
    $this->imageStyle = ImageStyle::create([
        'name' => 'test',
    ]);
    $this->imageStyle
        ->save();
}

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