function ImageStyleCustomStreamWrappersTest::setUp
Same name in other branches
- 9 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()
- 10 core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php \Drupal\Tests\image\Kernel\ImageStyleCustomStreamWrappersTest::setUp()
- 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\KernelCode
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.