protected function CKEditor5PluginManagerTest::setUp in Drupal 10
File
- core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php, line 59
Class
- CKEditor5PluginManagerTest
- Tests different ways of enabling CKEditor 5 plugins.
Namespace
Drupal\Tests\ckeditor5\KernelCode
protected function setUp() : void {
parent::setUp();
FilterFormat::create(Yaml::parseFile('core/profiles/standard/config/install/filter.format.basic_html.yml'))
->save();
Editor::create([
'format' => 'basic_html',
'editor' => 'ckeditor5',
])
->save();
FilterFormat::create(Yaml::parseFile('core/profiles/standard/config/install/filter.format.full_html.yml'))
->save();
Editor::create([
'format' => 'full_html',
'editor' => 'ckeditor5',
])
->save();
$this->manager = $this->container
->get('plugin.manager.ckeditor5.plugin');
$this->typedConfig = $this->container
->get('config.typed');
}