function ImageStyleValidationTest::setUp

Same name in other branches
  1. 11.x 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 26

Class

ImageStyleValidationTest
Tests validation of image_style entities.

Namespace

Drupal\Tests\image\Kernel

Code

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.