function ResponsiveImageStyleValidationTest::setUp

Same name in other branches
  1. 10 core/modules/responsive_image/tests/src/Kernel/ResponsiveImageStyleValidationTest.php \Drupal\Tests\responsive_image\Kernel\ResponsiveImageStyleValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/responsive_image/tests/src/Kernel/ResponsiveImageStyleValidationTest.php, line 25

Class

ResponsiveImageStyleValidationTest
Tests validation of responsive_image_style entities.

Namespace

Drupal\Tests\responsive_image\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->entity = ResponsiveImageStyle::create([
        'id' => 'test',
        'label' => 'Test',
    ]);
    $this->entity
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.