function InternalTest::setUp
Same name in other branches
- 8.9.x core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php \Drupal\Tests\ckeditor\Kernel\Plugin\CKEditorPlugin\InternalTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ ckeditor/ tests/ src/ Kernel/ Plugin/ CKEditorPlugin/ InternalTest.php, line 53
Class
- InternalTest
- @coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal
Namespace
Drupal\Tests\ckeditor\Kernel\Plugin\CKEditorPluginCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('editor');
$this->installEntitySchema('filter_format');
$this->format = FilterFormat::create([
'format' => 'test_format',
'name' => $this->randomMachineName(),
]);
$this->format
->save();
$this->editor = Editor::create([
'editor' => 'ckeditor',
'format' => 'test_format',
'settings' => [
'toolbar' => [
'rows' => [
[
[
'name' => 'Enabled Buttons',
'items' => [
'Format',
],
],
],
],
],
],
]);
$this->editor
->save();
$this->ckeditorPluginManager = $this->container
->get('plugin.manager.ckeditor.plugin');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.