ResponsiveImageStyleValidationTest.php

Same filename in other branches
  1. 11.x core/modules/responsive_image/tests/src/Kernel/ResponsiveImageStyleValidationTest.php

Namespace

Drupal\Tests\responsive_image\Kernel

File

core/modules/responsive_image/tests/src/Kernel/ResponsiveImageStyleValidationTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\responsive_image\Kernel;

use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;
use Drupal\responsive_image\Entity\ResponsiveImageStyle;

/**
 * Tests validation of responsive_image_style entities.
 *
 * @group responsive_image
 * @group #slow
 */
class ResponsiveImageStyleValidationTest extends ConfigEntityValidationTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'breakpoint',
        'image',
        'responsive_image',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->entity = ResponsiveImageStyle::create([
            'id' => 'test',
            'label' => 'Test',
        ]);
        $this->entity
            ->save();
    }

}

Classes

Title Deprecated Summary
ResponsiveImageStyleValidationTest Tests validation of responsive_image_style entities.

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