function ImageStyleDeleteTest::setUp
Same name in other branches
- 9 core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php \Drupal\Tests\image\Functional\ImageStyleDeleteTest::setUp()
- 8.9.x core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php \Drupal\Tests\image\Functional\ImageStyleDeleteTest::setUp()
- 11.x core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php \Drupal\Tests\image\Functional\ImageStyleDeleteTest::setUp()
Overrides ImageFieldTestBase::setUp
File
-
core/
modules/ image/ tests/ src/ Functional/ ImageStyleDeleteTest.php, line 25
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', 'node', 'page', [], [], [
'preview_image_style' => 'medium',
], [
'image_style' => 'medium',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.