function ConfigInstallTest::testEditorInstalled

Same name and namespace in other branches
  1. main core/modules/ckeditor5/tests/src/Functional/ConfigInstallTest.php \Drupal\Tests\ckeditor5\Functional\ConfigInstallTest::testEditorInstalled()

Tests that the editor config is installed during site install.

File

core/modules/ckeditor5/tests/src/Functional/ConfigInstallTest.php, line 39

Class

ConfigInstallTest
Tests installing a module that ships a CKEditor 5 editor in its config.

Namespace

Drupal\Tests\ckeditor5\Functional

Code

public function testEditorInstalled() : void {
  $editor = \Drupal::entityTypeManager()->getStorage('editor')
    ->load('ckeditor5_config_install_test');
  $this->assertNotNull($editor);
  $this->assertSame('ckeditor5', $editor->getEditor());
}

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