function CKEditorPluginManagerTest::setUp
Same name in other branches
- 8.9.x core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php \Drupal\Tests\ckeditor\Kernel\CKEditorPluginManagerTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ ckeditor/ tests/ src/ Kernel/ CKEditorPluginManagerTest.php, line 40
Class
- CKEditorPluginManagerTest
- Tests different ways of enabling CKEditor plugins.
Namespace
Drupal\Tests\ckeditor\KernelCode
protected function setUp() : void {
parent::setUp();
// Install the Filter module.
// Create text format, associate CKEditor.
$filtered_html_format = FilterFormat::create([
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'weight' => 0,
'filters' => [],
]);
$filtered_html_format->save();
$editor = Editor::create([
'format' => 'filtered_html',
'editor' => 'ckeditor',
]);
$editor->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.