ImageStyleValidationTest.php
Same filename in other branches
Namespace
Drupal\Tests\image\KernelFile
-
core/
modules/ image/ tests/ src/ Kernel/ ImageStyleValidationTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\image\Kernel;
use Drupal\image\Entity\ImageStyle;
use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;
/**
* Tests validation of image_style entities.
*
* @group image
*/
class ImageStyleValidationTest extends ConfigEntityValidationTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'image',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->entity = ImageStyle::create([
'name' => 'test',
'label' => 'Test',
]);
$this->entity
->save();
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ImageStyleValidationTest | Tests validation of image_style entities. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.