protected function ImageStyleCustomStreamWrappersTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\KernelCode
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();
}