FilterFormatValidationTest.php

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

Namespace

Drupal\Tests\filter\Kernel

File

core/modules/filter/tests/src/Kernel/FilterFormatValidationTest.php

View source
<?php

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

use Drupal\filter\Entity\FilterFormat;
use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;

/**
 * Tests validation of filter_format entities.
 *
 * @group filter
 * @group #slow
 */
class FilterFormatValidationTest extends ConfigEntityValidationTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'filter',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->entity = FilterFormat::create([
            'format' => 'test',
            'name' => 'Test',
        ]);
        $this->entity
            ->save();
    }

}

Classes

Title Deprecated Summary
FilterFormatValidationTest Tests validation of filter_format entities.

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