protected function InternalTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php \Drupal\Tests\ckeditor\Kernel\Plugin\CKEditorPlugin\InternalTest::setUp()
- 9 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 52
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');
}