function CKEditorUpdateOmitDisabledPluginSettings::testUpdateUpdateOmitDisabledSettingsPostUpdate

Ensure settings for disabled CKEditor 4 plugins are omitted on post update.

File

core/modules/ckeditor/tests/src/Functional/Update/CKEditorUpdateOmitDisabledPluginSettings.php, line 32

Class

CKEditorUpdateOmitDisabledPluginSettings
Tests the update path for CKEditor plugin settings for disabled plugins.

Namespace

Drupal\Tests\ckeditor\Functional\Update

Code

public function testUpdateUpdateOmitDisabledSettingsPostUpdate() {
    $editor = Editor::load('basic_html');
    $settings = $editor->getSettings();
    $this->assertArrayHasKey('stylescombo', $settings['plugins']);
    $this->runUpdates();
    $editor = Editor::load('basic_html');
    $settings = $editor->getSettings();
    $this->assertArrayNotHasKey('stylescombo', $settings['plugins']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.