function CKEditor4to5UpgradeCompletenessTest::setUp

Overrides KernelTestBase::setUp

File

core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php, line 88

Class

CKEditor4to5UpgradeCompletenessTest
@covers <a href="/api/drupal/core%21modules%21ckeditor5%21src%21Plugin%21CKEditor4To5Upgrade%21Core.php/class/Core/9" title="Provides the CKEditor 4 to 5 upgrade for Drupal core&#039;s CKEditor plugins." class="local">\Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Core</a> @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    // The tested service is private; expose it under a public test-only alias.
    $this->container
        ->setAlias('sut', 'plugin.manager.ckeditor4to5upgrade.plugin');
    $this->cke4PluginManager = $this->container
        ->get('plugin.manager.ckeditor.plugin');
    $this->cke5PluginManager = $this->container
        ->get('plugin.manager.ckeditor5.plugin');
    $this->upgradePluginManager = $this->container
        ->get('sut');
    $this->smartDefaultSettings = $this->container
        ->get('ckeditor5.smart_default_settings');
}

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