protected function ImageStyleDeleteTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php \Drupal\Tests\image\Functional\ImageStyleDeleteTest::setUp()
- 9 core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php \Drupal\Tests\image\Functional\ImageStyleDeleteTest::setUp()
File
- core/
modules/ image/ tests/ src/ Functional/ ImageStyleDeleteTest.php, line 23
Class
- ImageStyleDeleteTest
- Tests image style deletion using the UI.
Namespace
Drupal\Tests\image\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an image field 'foo' having the image style 'medium' as widget
// preview and as formatter.
$this
->createImageField('foo', 'page', [], [], [
'preview_image_style' => 'medium',
], [
'image_style' => 'medium',
]);
}