protected function CKEditorPluginManagerTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php \Drupal\ckeditor\Tests\CKEditorPluginManagerTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ ckeditor/ src/ Tests/ CKEditorPluginManagerTest.php, line 33 - Contains \Drupal\ckeditor\Tests\CKEditorPluginManagerTest.
Class
- CKEditorPluginManagerTest
- Tests different ways of enabling CKEditor plugins.
Namespace
Drupal\ckeditor\TestsCode
protected function setUp() {
parent::setUp();
// Install the Filter module.
$this
->installSchema('system', 'url_alias');
// Create text format, associate CKEditor.
$filtered_html_format = entity_create('filter_format', array(
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'weight' => 0,
'filters' => array(),
));
$filtered_html_format
->save();
$editor = entity_create('editor', array(
'format' => 'filtered_html',
'editor' => 'ckeditor',
));
$editor
->save();
}