You are here

protected function ImageStyleCustomStreamWrappersTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()
  2. 9 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::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() : void {
  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();
}