function EditorFileReferenceFilterTest::setUp

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

Overrides KernelTestBase::setUp

File

core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php, line 43

Class

EditorFileReferenceFilterTest
Tests Editor module's file reference filter.

Namespace

Drupal\Tests\editor\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'system',
    ]);
    $this->installEntitySchema('file');
    $this->installSchema('file', [
        'file_usage',
    ]);
    $manager = $this->container
        ->get('plugin.manager.filter');
    $bag = new FilterPluginCollection($manager, []);
    $this->filters = $bag->getAll();
}

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