You are here

protected function ImageStyleCustomStreamWrappersTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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();
}