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