protected function EditorFileReferenceFilterTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\KernelCode
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();
}