function ImageStyleValidationTest::setUp
Same name in other branches
- 10 core/modules/image/tests/src/Kernel/ImageStyleValidationTest.php \Drupal\Tests\image\Kernel\ImageStyleValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ image/ tests/ src/ Kernel/ ImageStyleValidationTest.php, line 25
Class
- ImageStyleValidationTest
- Tests validation of image_style entities.
Namespace
Drupal\Tests\image\KernelCode
protected function setUp() : void {
parent::setUp();
$this->entity = ImageStyle::create([
'name' => 'test',
'label' => 'Test',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.