function FilterDefaultConfigTest::setUp

Same name in other branches
  1. 8.9.x core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php \Drupal\Tests\filter\Kernel\FilterDefaultConfigTest::setUp()
  2. 10 core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php \Drupal\Tests\filter\Kernel\FilterDefaultConfigTest::setUp()
  3. 11.x core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php \Drupal\Tests\filter\Kernel\FilterDefaultConfigTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php, line 21

Class

FilterDefaultConfigTest
Tests text format default configuration.

Namespace

Drupal\Tests\filter\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    // Drupal\filter\FilterPermissions::permissions() builds a URL to output
    // a link in the description.
    $this->installEntitySchema('user');
    // Install filter_test module, which ships with custom default format.
    $this->installConfig([
        'user',
        'filter_test',
    ]);
}

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