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