protected function InternalTest::setUp in Drupal 8
Same name and namespace in other branches
- 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() {
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');
}